boot compressed readonly usb-media with aes encryption
> When I try to boot, I get prompted for my passphrase, but I can't get
> through this. Then I get asked if I won't continue to try decrypt the
> file.
Hello,
that is the part of live-initramfs asking for the password
the read command has the -s switch to not echo to the screen what is typed,
there are some problems now with live, may be the error is not for encryption,
see the file live.log in the initramfs prompt
and look in previous posts.
tail -150 /live.log | more
Kind regards,
Jordi Pujol
And that is part of the code in live.initramfs/scripts/live-helpers:
if [ -z "${encryption}" ]
then
/sbin/losetup ${options} "${dev}" "${fspath}"
[ "${FSTAB}" = "Yes" ] && echo "# setup_loop ()
${fspath} ${dev} auto noauto,${options} 0 0" >> "${FSTABFILE}"
else
# Loop AES encryption
while true
do
load_keymap
echo -n "Enter passphrase for ${fspath}: " >&6
read -s passphrase
echo "${passphrase}" > /tmp/passphrase
exec 9</tmp/passphrase
/sbin/losetup ${options} -e "${encryption}" -p 9 "${dev}" "${fspath}"
error=${?}
exec 9<&-
rm -f /tmp/passphrase
if [ 0 -eq ${error} ]
then
[ "${FSTAB}" = "Yes" ] && echo "# setup_loop () encryption
${fspath} ${dev} auto noauto,${options} 0 0" >> "${FSTABFILE}"
unset error
break
fi
echo -n "Something went wrong... Retry? [YES/no] " >&6
read answer
if [ 'no' = "${answer}" ]
then
unset answer
break
fi
done
fi
echo "${dev}"
return 0
fi
Reply to: