[dm-crypt] persistent naming: add ID in addition to UUID

Sven Eschenberg sven at whgl.uni-frankfurt.de
Sun Jul 26 20:25:28 CEST 2015


On Sun, July 26, 2015 19:02, ilf wrote:
> Cryptsetup currently allows "LUKS UUID in the format UUID=<uuid>.
> Translation to real device name uses symlinks in /dev/disk/by-uuid
> directory", as quoted from man/cryptsetup.8.
>
> Is there a reason why other persistent block device naming schemes are
> not supported? I for one would love to use by-id, "a unique name
> depending on the hardware serial number":
> https://wiki.archlinux.org/index.php/Persistent_block_device_naming#by-id_and_by-path
>
> I am aware of the difference addressing hardware and LUKS header, but in
> my use case, I actually *do* want to address hardware in crypttab at al.
>
Since you want to use crypttab anyway, is there any particular reason not
to use /dev/disk/by-id/<identifier>? As UUID=<uuid> needs proper symlinks
anyway, it is rather a handy shorthand at the commandline.

> Thanks, and keep up the good work!
>
> --
> ilf
>

-Sven



More information about the dm-crypt mailing list