|
|
@ -37,6 +37,7 @@ trap "exithandler" 0 |
|
|
|
# including "/" as well) and "/proc". |
|
|
|
sort -rk2,2 < /proc/mounts | while read D P A2 ; do |
|
|
|
beginswith "$P" "$LIVE" && continue |
|
|
|
beginswith "$P" "$(realpath $LIVE)" && continue |
|
|
|
beginswith "/run/netns/$NAME" "$P" && continue |
|
|
|
[ "$P" = /proc ] && continue |
|
|
|
umount "$P" |
|
|
|