parent
86bf2533d7
commit
e0abf88a15
|
@ -138,8 +138,9 @@ unset allowdiscards
|
||||||
ask_passphrase=1
|
ask_passphrase=1
|
||||||
|
|
||||||
if [ -n "$luksfile" -a "$luksfile" != "none" -a -e "$luksfile" ]; then
|
if [ -n "$luksfile" -a "$luksfile" != "none" -a -e "$luksfile" ]; then
|
||||||
|
# shellcheck disable=SC2086
|
||||||
if readkey "$luksfile" / "$device" \
|
if readkey "$luksfile" / "$device" \
|
||||||
| cryptsetup -d - "$cryptsetupopts" luksOpen "$device" "$luksname"; then
|
| cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname"; then
|
||||||
ask_passphrase=0
|
ask_passphrase=0
|
||||||
fi
|
fi
|
||||||
elif [ "$is_keysource" -ne 0 ]; then
|
elif [ "$is_keysource" -ne 0 ]; then
|
||||||
|
@ -164,8 +165,9 @@ else
|
||||||
unset tmp
|
unset tmp
|
||||||
|
|
||||||
info "Using '$keypath' on '$keydev'"
|
info "Using '$keypath' on '$keydev'"
|
||||||
|
# shellcheck disable=SC2086
|
||||||
readkey "$keypath" "$keydev" "$device" \
|
readkey "$keypath" "$keydev" "$device" \
|
||||||
| cryptsetup -d - "$cryptsetupopts" luksOpen "$device" "$luksname" \
|
| cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname" \
|
||||||
&& ask_passphrase=0
|
&& ask_passphrase=0
|
||||||
unset keypath keydev
|
unset keypath keydev
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue