Commit 10211c7b authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

luks_open() enter password only once

parent bfeb4fc5
...@@ -497,13 +497,14 @@ luks_open() { ...@@ -497,13 +497,14 @@ luks_open() {
fi fi
# Select encrypted partition to open # Select encrypted partition to open
DIALOG " $_LuksOpen " --menu "\n$_LuksMenuBody\n " 0 0 12 ${PARTITIONS} 2>${ANSWER} || return 1 DIALOG " $_LuksOpen " --menu "\n$_LuksMenuBody\n " 0 0 12 ${PARTITIONS} 2>${ANSWER} || return 0
PARTITION=$(cat ${ANSWER}) PARTITION=$(cat ${ANSWER})
# Enter name of the Luks partition and get password to open it # Enter name of the Luks partition and get password to open it
DIALOG " $_LuksOpen " --inputbox "\n$_LuksOpenBody\n " 10 50 "cryptroot" 2>${ANSWER} || return 1 DIALOG " $_LuksOpen " --inputbox "\n$_LuksOpenBody\n " 10 50 "cryptroot" 2>${ANSWER} || return 0
LUKS_ROOT_NAME=$(cat ${ANSWER}) LUKS_ROOT_NAME=$(cat ${ANSWER})
luks_password DIALOG " $_PrepLUKS " --clear --insecure --passwordbox "\n$_LuksPassBody\n " 0 0 2> ${ANSWER} || return 0
PASSWD=$(cat ${ANSWER})
# Try to open the luks partition with the credentials given. If successful show this, otherwise # Try to open the luks partition with the credentials given. If successful show this, otherwise
# show the error # show the error
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment