X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=35fb8cf81cbdb98d0f8caf42e336365bbc3900ef;hb=81f5b4978b7062df5193871c1087419dce294991;hp=79b158c95b5cc86c7a8ede2aaad108c82964d62f;hpb=be6b1ff8961f46a2bf51811bdd536c3d90239027;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index 79b158c..35fb8cf 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 } @@ -334,15 +334,8 @@ find_cow_device () do load_keymap - echo -n "Enter passphrase for ${pers_label} on ${devname}: " >&6 - read -s passphrase - echo "${passphrase}" > /tmp/passphrase - unset passphrase - exec 9