Package: live-initramfs Version:This function has a comment that grep should return the first match found, when in fact it returns all that are found:
where_is_mounted () { device=${1} if grep -q "^${device} " /proc/mounts then # return the first found grep "^${device} " /proc/mounts | cut -f2 -d ' ' fi } Need to change the grep line to use the -m parameter: grep -m 1 "^${device} " /proc/mounts | cut -f2 -d ' ' Thanks! Tony