Perhaps the following will do

root_line=$(awk '$1!~"^rootfs" && $2=="/" {print NR}' /proc/mounts)
skip_devices=$(head -n $root_line /proc/mounts | cut -d ' ' -f 1)
....

echo $skip_devices | grep -qs $DEV"$" && continue

-- 
umountfs must check whether a mountpoint contains a loopmounted root file
https://bugs.launchpad.net/bugs/151579
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to