Skip to content

Commit

Permalink
Merge pull request #1 from lapseofreason/fix-cryptsetupopts-90crypt
Browse files Browse the repository at this point in the history
Remove quotes from cryptsetupopts in 90crypt module
  • Loading branch information
lapseofreason authored Jun 8, 2021
2 parents 86bf253 + cab7737 commit 61dc658
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 61dc658

Please sign in to comment.