Device names with cryptsetup

asked 2019-04-17 19:42:32 -0600

viraptor gravatar image

It looks like by default if I use encryption via rd.luks.uuid=... in the cmdline, the decrypted devices will be created as /dev/mapper/luks-{uuid}. The crypttab seems to be generated from the parameters rather than come from the system.

I'd really like to have readable names for those devices - is there a way to do this with standard tools / grub config? Or do I need to rely on the uuids?

edit retag flag offensive close merge delete

Comments

UUIDs are they way to go. You can use LABELs to name your partitions and you can refer to them, but trust me, UUIDS for partitions are great, they solve more problems, as they cause.

rdtcustomercare gravatar imagerdtcustomercare ( 2019-04-20 04:36:36 -0600 )edit

UUID/Label can be useful. But what they don't solve is running mkfs /dev/mapper/luks-wrong-uuid by accident, since you can't easily tell which device you're targetting.

viraptor gravatar imageviraptor ( 2019-04-20 21:00:10 -0600 )edit