[systemd-devel] [PATCH] cryptsetup-generator: support rd.luks.key=keyfile:keyfile_device

Jan Synacek jsynacek at redhat.com
Sun Feb 22 23:52:14 PST 2015


Andrei Borzenkov <arvidjaar at gmail.com> writes:

> В Fri, 20 Feb 2015 10:56:42 +0100
> Jan Synacek <jsynacek at redhat.com> пишет:
>
>> To be more consistent with how dracut parses rd.luks.key, it is now
>> allowed to specified it in the format "keyfile[:keyfile_device]".
>> 
>> Should keyfile_device be provided, it needs to be in "UUID=uuid-here"
>> format. Also, keyfile path is then treated relatively to the root of the
>> keyfile device.
>> 
>
> What makes UUID special? Why it cannot be anything mount understands
> (like LABEL=..., /dev/disk/by-uuid/...). systemd already has code to
> resolve it.

UUID uniquely identifies the device and is always there. AFAIK that is
not true for LABEL. Supporting LABEL would complicate things and since I
wasn't even sure if my solution was the way to go, I didn't bother with
it.

-- 
Jan Synacek
Software Engineer, Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150223/cd843437/attachment.sig>


More information about the systemd-devel mailing list