X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=overlay-boot;h=899d53ba25f3f9310041462df7d84ce06d9a3307;hb=1c9c4ac02c9718b20f8d3549bb15bb9c7c82ab23;hp=6577cadf387a658b182b8a928ee257ab3274f9cb;hpb=c9ae07817991aa1a0453811459fb5011c407c40c;p=rrq%2Foverlay-boot.git diff --git a/overlay-boot b/overlay-boot index 6577cad..899d53b 100755 --- a/overlay-boot +++ b/overlay-boot @@ -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"