From: Daniel Baumann Date: Thu, 14 May 2009 08:06:55 +0000 (+0200) Subject: Initial commit for having support for persistency on luks. X-Git-Tag: debian/2.0.15-1~315 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=inline;h=4c28d245428f8709832fc4b1c5b6b1ab5e71cc07;p=live-boot-grml.git Initial commit for having support for persistency on luks. --- diff --git a/scripts/live-helpers b/scripts/live-helpers index 59bdb4f..c4fca95 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -327,6 +327,43 @@ find_cow_device () break fi + # Checking for a luks device + if [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname} + then + while true + do + load_keymap + + echo -n "Enter passphrase for ${pers_label} on ${devname}: " >&6 + read -s passphrase + echo "${passphrase}" > /tmp/passphrase + unset passphrase + exec 9&6 + read answer + + if [ "$(echo "${answer}" | cut -b1 | tr A-Z a-z)" = "n" ] + then + unset answer + break + fi + done + fi + if [ "$(/lib/udev/vol_id -l ${devname} 2>/dev/null)" = "${pers_label}" ] then echo "${devname}"