]> git.ipfire.org Git - thirdparty/dracut.git/commit
90crypt: Fixed crypttab_contains() to also work with device path in /etc/crypttab 244/head
authorJulian Wolf <juwolf@suse.de>
Tue, 19 Aug 2014 14:23:59 +0000 (16:23 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Tue, 27 Jun 2017 14:43:47 +0000 (16:43 +0200)
commitc3b6970394ad677f05a42bef420bf34b1d0652e0
tree43dfa3ba2f59a9d92f83e60860557a42477af5ba
parenta0d129e33e2225f2d5536e4069d04bc1878971a0
90crypt: Fixed crypttab_contains() to also work with device path in /etc/crypttab

blkid is not available when this function is called, so block_uuid.map is put into
the initrd, mapping block devices from /etc/crypttab to UUIDs.

This fixes a bug where udev rules were created by mistake as crypttab_contains()
returned false for devices specified by path in /etc/crypttab which resulted in
error messages during boot.

Signed-off-by: Julian Wolf <juwolf@suse.de>
modules.d/90crypt/crypt-lib.sh
modules.d/90crypt/module-setup.sh