]> git.ipfire.org Git - thirdparty/dracut.git/commit
90crypt: probe for keydev asynchronously; changed kernel arg
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Fri, 12 Nov 2010 09:21:49 +0000 (10:21 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 12 Nov 2010 13:08:08 +0000 (14:08 +0100)
commit8844cd6b6cac908d7f81460838e3106af77d61a8
tree91639a9c1ae2399b1f438221b5c5093022fcbb1c
parentccb0ab73485baf5ff9e65729435bc599f96945e8
90crypt: probe for keydev asynchronously; changed kernel arg

New kernel argument syntax for LUKS-keydev is introduced:

  rd.luks.key=<key_path>[:<key_dev>[:<luks_dev>]]

Unfolding <key_dev> in BNF:

  <key_dev> ::= "UUID=" <uuid> | "LABEL=" <label> | <kname>

Where <kname> matches following regular expression:

  ^/dev/.*

<kname> need to be a character device and not a symlink for now.

For every rd.luks.key argument udev rule is created.  That rule runs
test to check whether matching device contains <key_path>.  If it does
it's applied to matching <luks_dev>.
modules.d/90crypt/crypt-lib.sh [new file with mode: 0644]
modules.d/90crypt/cryptroot-ask.sh
modules.d/90crypt/install
modules.d/90crypt/parse-crypt.sh
modules.d/90crypt/parse-keydev.sh [new file with mode: 0644]
modules.d/90crypt/probe-keydev.sh [new file with mode: 0755]