From b4cf58f038c980939d665d370d69fe1ba251ccad Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner Date: Thu, 30 Mar 2017 15:06:01 +0200 Subject: [PATCH] crypt: Fix indentation for embedded keyfile --- modules.d/90crypt/parse-keydev.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.47.2