X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=fbf61fea8dfe4dd101da3ce0bc6cbc1a50c04352;hb=2c2184b6deff74fd2ea091edeee34efa08b74b09;hp=c4fca957f7a5b76220497a13d1f8c56b1842486f;hpb=4c28d245428f8709832fc4b1c5b6b1ab5e71cc07;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index c4fca95..fbf61fe 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 } @@ -367,7 +367,7 @@ find_cow_device () if [ "$(/lib/udev/vol_id -l ${devname} 2>/dev/null)" = "${pers_label}" ] then echo "${devname}" - return + return 0 fi if [ "${PERSISTENT}" = "nofiles" ] @@ -398,6 +398,7 @@ find_cow_device () esac done done + return 1 } find_files ()