mirror of
https://github.com/nix-community/disko.git
synced 2024-09-17 09:37:17 +03:00
luks: fix interactive mount
Before that it was only attempted to unlock luks with the key from `$password`, however that variable didn't exist before.
This commit is contained in:
parent
3c41ae36ff
commit
e738cac18e
@ -137,6 +137,13 @@ in
|
||||
{
|
||||
dev = ''
|
||||
if ! cryptsetup status ${config.name} >/dev/null 2>/dev/null; then
|
||||
${lib.optionalString config.askPassword ''
|
||||
set +x
|
||||
echo "Enter password for ${config.device}"
|
||||
read -s password
|
||||
export password
|
||||
set -x
|
||||
''}
|
||||
cryptsetup open ${config.device} ${config.name} \
|
||||
${keyFileArgs}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user