]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(crypt): remove quotes from cryptsetupopts
authorlapseofreason <lapseofreason0@gmail.com>
Tue, 8 Jun 2021 14:01:58 +0000 (16:01 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 8 Jun 2021 19:28:45 +0000 (19:28 +0000)
Fixes #1528.

modules.d/90crypt/cryptroot-ask.sh

index 37a4deeaf93f84e5b5d09e9df2232eb5ff186e35..b1f8df81febe2988c85f7e761fa7d19422877105 100755 (executable)
@@ -138,8 +138,9 @@ unset allowdiscards
 ask_passphrase=1
 
 if [ -n "$luksfile" -a "$luksfile" != "none" -a -e "$luksfile" ]; then
+    # shellcheck disable=SC2086
     if readkey "$luksfile" / "$device" \
-        | cryptsetup -d - "$cryptsetupopts" luksOpen "$device" "$luksname"; then
+        | cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname"; then
         ask_passphrase=0
     fi
 elif [ "$is_keysource" -ne 0 ]; then
@@ -164,8 +165,9 @@ else
         unset tmp
 
         info "Using '$keypath' on '$keydev'"
+        # shellcheck disable=SC2086
         readkey "$keypath" "$keydev" "$device" \
-            | cryptsetup -d - "$cryptsetupopts" luksOpen "$device" "$luksname" \
+            | cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname" \
             && ask_passphrase=0
         unset keypath keydev
         break