Comment 3 for bug 151579

Revision history for this message
Agostino Russo (ago) wrote :

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