From: Moritz Maxeiner Date: Thu, 30 Mar 2017 13:06:01 +0000 (+0200) Subject: crypt: Fix indentation for embedded keyfile X-Git-Tag: 045~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F211%2Fhead;p=thirdparty%2Fdracut.git crypt: Fix indentation for embedded keyfile --- diff --git a/modules.d/90crypt/parse-keydev.sh b/modules.d/90crypt/parse-keydev.sh index c2ea34d2e..a45b2fb58 100755 --- a/modules.d/90crypt/parse-keydev.sh +++ b/modules.d/90crypt/parse-keydev.sh @@ -17,12 +17,12 @@ if getargbool 1 rd.luks -n rd_NO_LUKS && \ continue fi - # A keydev of '/' is treated as the initrd itself - if [ "/" == "$keydev" ]; then - [ -z "$luksdev" ] && luksdev='*' - echo "$luksdev:$keydev:$keypath" >> /tmp/luks.keys - continue - elif [ -n "$keydev" ]; then + # A keydev of '/' is treated as the initrd itself + if [ "/" == "$keydev" ]; then + [ -z "$luksdev" ] && luksdev='*' + echo "$luksdev:$keydev:$keypath" >> /tmp/luks.keys + continue + elif [ -n "$keydev" ]; then udevmatch "$keydev" >&7 || { warn 'keydev incorrect!' continue