[dm-crypt] persistent naming: add ID in addition to UUID
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":
> 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!
More information about the dm-crypt