correct ask for password in crypttab

This commit is contained in:
Tobias Powalowski 2011-02-09 11:34:46 +01:00
parent 55d7ff0f5d
commit 37f54b3547

View file

@ -1502,7 +1502,7 @@ _opening_luks() {
fi fi
done done
LUKSPASSPHRASE="$(cat ${LUKSPASSPHRASE})" LUKSPASSPHRASE="$(cat ${LUKSPASSPHRASE})"
DIALOG --yesno "Would you like to safe the passphrase of luks device to /etc/crypttab?\nName:${LUKSDEVICE}" 0 0 || LUKSPASSPHRASE="none" DIALOG --yesno "Would you like to safe the passphrase of luks device to /etc/crypttab?\nName:${LUKSDEVICE}" 0 0 || LUKSPASSPHRASE="ASK"
echo ${LUKSDEVICE} ${PART} ${LUKSPASSPHRASE} >> /tmp/.crypttab echo ${LUKSDEVICE} ${PART} ${LUKSPASSPHRASE} >> /tmp/.crypttab
[[ -e /tmp/.passphrase ]] && rm /tmp/.passphrase [[ -e /tmp/.passphrase ]] && rm /tmp/.passphrase
} }