Skip to content

Commit e0abf88

Browse files
lapseofreasonjohannbg
authored andcommitted
fix(crypt): remove quotes from cryptsetupopts
Fixes #1528.
1 parent 86bf253 commit e0abf88

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: modules.d/90crypt/cryptroot-ask.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ unset allowdiscards
138138
ask_passphrase=1
139139

140140
if [ -n "$luksfile" -a "$luksfile" != "none" -a -e "$luksfile" ]; then
141+
# shellcheck disable=SC2086
141142
if readkey "$luksfile" / "$device" \
142-
| cryptsetup -d - "$cryptsetupopts" luksOpen "$device" "$luksname"; then
143+
| cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname"; then
143144
ask_passphrase=0
144145
fi
145146
elif [ "$is_keysource" -ne 0 ]; then
@@ -164,8 +165,9 @@ else
164165
unset tmp
165166

166167
info "Using '$keypath' on '$keydev'"
168+
# shellcheck disable=SC2086
167169
readkey "$keypath" "$keydev" "$device" \
168-
| cryptsetup -d - "$cryptsetupopts" luksOpen "$device" "$luksname" \
170+
| cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname" \
169171
&& ask_passphrase=0
170172
unset keypath keydev
171173
break

0 commit comments

Comments
 (0)