Skip to content

Commit

Permalink
Remove quotes from cryptsetupopts in 90crypt module
Browse files Browse the repository at this point in the history
Fixes #1528.
  • Loading branch information
lapseofreason authored Jun 8, 2021
1 parent 86bf253 commit cab7737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules.d/90crypt/cryptroot-ask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ ask_passphrase=1

if [ -n "$luksfile" -a "$luksfile" != "none" -a -e "$luksfile" ]; then
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
Expand All @@ -165,7 +165,7 @@ else

info "Using '$keypath' on '$keydev'"
readkey "$keypath" "$keydev" "$device" \
| cryptsetup -d - "$cryptsetupopts" luksOpen "$device" "$luksname" \
| cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname" \
&& ask_passphrase=0
unset keypath keydev
break
Expand Down

0 comments on commit cab7737

Please sign in to comment.