Skip to content

Commit

Permalink
fix(crypt): remove quotes from cryptsetupopts
Browse files Browse the repository at this point in the history
Fixes dracutdevs#1528.

(cherry picked from commit e0abf88)
  • Loading branch information
lapseofreason authored and aafeijoo-suse committed Sep 29, 2021
1 parent 6c4187a commit 42a634a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules.d/90crypt/cryptroot-ask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 42a634a

Please sign in to comment.