Browse Source

Avoid unmounting points below $LIVE using full pathname.

suites/experimental
Ralph Rönnquist 3 months ago
parent
commit
f8cfc3c838
Signed by: rrq GPG Key ID: 680B5A1F661ECDBC
  1. 1
      overlay-boot

1
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"

Loading…
Cancel
Save