From: Harald Hoyer Date: Wed, 10 Apr 2013 08:15:43 +0000 (+0200) Subject: crypt/module-setup.sh: also handle UUID= while filtering crypttab X-Git-Tag: 028~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdcb27a4fee4400581becec37e862c461332cb50;p=thirdparty%2Fdracut.git crypt/module-setup.sh: also handle UUID= while filtering crypttab The crypttab filter for host-only did not handle UUID= entries. https://bugzilla.redhat.com/show_bug.cgi?id=919752 --- diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh index 3c9a1f19a..639a77fc5 100755 --- a/modules.d/90crypt/module-setup.sh +++ b/modules.d/90crypt/module-setup.sh @@ -62,6 +62,10 @@ install() { while read _mapper _dev _rest; do [[ $_mapper = \#* ]] && continue [[ $_dev ]] || continue + + [[ $_dev == UUID=* ]] && \ + _dev="/dev/disk/by-uuid/${_dev#UUID=}" + for _hdev in "${!host_fs_types[@]}"; do [[ ${host_fs_types[$_hdev]} == "crypto_LUKS" ]] || continue if [[ $_hdev -ef $_dev ]] || [[ /dev/block/$_hdev -ef $_dev ]]; then