Skip to content

Commit

Permalink
scripts/live-helpers: Cosmetic changes to loop-aes passphrase prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lamby authored and daniel-baumann committed Mar 23, 2008
1 parent b19387f commit 68225b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/live-helpers
Expand Up @@ -178,9 +178,10 @@ setup_loop ()
do
load_keymap

echo -n "Enter passphrase for ${fspath}: " >&6
echo -n "Enter passphrase for root filesystem: " >&6
read -s passphrase
echo "${passphrase}" > /tmp/passphrase
unset passphrase
exec 9</tmp/passphrase
/sbin/losetup ${options} -e "${encryption}" -p 9 "${dev}" "${fspath}"
error=${?}
Expand All @@ -193,10 +194,11 @@ setup_loop ()
break
fi

echo -n "Something went wrong... Retry? [YES/no] " >&6
echo
echo -n "There was an error decrypting the root filesystem ... Retry? [Y/n] " >&6
read answer

if [ 'no' = "${answer}" ]
if [ "$(echo "${answer}" | cut -b1 | tr A-Z a-z)" = "n" ]
then
unset answer
break
Expand Down

0 comments on commit 68225b3

Please sign in to comment.