aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlapseofreason <lapseofreason0@gmail.com>2021-06-08 16:01:58 +0200
committerJóhann B. Guðmundsson <johannbg@gmail.com>2021-06-08 19:28:45 +0000
commite0abf88a15d23fbf793cf872397016ad86aeaaa8 (patch)
tree4f1c15a25af8a95737e6ad248ef87c5d615dde1e
parent86bf2533d77762e823ad7a3e06a574522c1a90e3 (diff)
downloaddracut-e0abf88a15d23fbf793cf872397016ad86aeaaa8.tar.gz
fix(crypt): remove quotes from cryptsetupopts
Fixes #1528.
-rwxr-xr-xmodules.d/90crypt/cryptroot-ask.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh
index 37a4deea..b1f8df81 100755
--- a/modules.d/90crypt/cryptroot-ask.sh
+++ b/modules.d/90crypt/cryptroot-ask.sh
@@ -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