X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=d5ad29f6bc9be6ee410ddf55b9d25fd67cb24482;hb=refs%2Ftags%2Fdebian%2F1.157.3-1;hp=79b158c95b5cc86c7a8ede2aaad108c82964d62f;hpb=be6b1ff8961f46a2bf51811bdd536c3d90239027;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index 79b158c..d5ad29f 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -104,7 +104,7 @@ where_is_mounted () if grep -q "^${device} " /proc/mounts then # return the first found - grep "^${device} " /proc/mounts | cut -f2 -d ' ' + grep -m1 "^${device} " /proc/mounts | cut -f2 -d ' ' fi } @@ -328,21 +328,14 @@ find_cow_device () fi # Checking for a luks device - if [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname} + if [ "${PERSISTENT}" = "cryptsetup" ] && [ -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