]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
crypt: Fix indentation for embedded keyfile 211/head
authorMoritz Maxeiner <moritz@ucworks.org>
Thu, 30 Mar 2017 13:06:01 +0000 (15:06 +0200)
committerMoritz Maxeiner <moritz@ucworks.org>
Thu, 30 Mar 2017 13:06:01 +0000 (15:06 +0200)
modules.d/90crypt/parse-keydev.sh

index c2ea34d2ef63dcb48167bd22b8a0ddd18f5a2946..a45b2fb587910de99b84ac0605115ecdbe909f8d 100755 (executable)
@@ -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