Your message dated Sun, 3 May 2020 22:44:14 +0200
with message-id <[email protected]>
and subject line Re: #200751: umount: need -e /excludefs and -aa options
has caused the Debian Bug report #200751,
regarding umount: need -e /excludefs and -aa options
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
200751: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=200751
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mount
Version: 2.11z-1

Umount needs two extra flags:

-aa (basically, specify -a option twice) to umount all filesystems
    *inclusing* proc filesystems which are excluded now

-e excludefs .


This is needed because proc filesystems and devfs filesystems can
be mounted several times, for example in chroot environments. The
shutdown sequence needs to unmount those too, but there's no way
to say "umount everything except /proc and /devfs".

The umountall.sh script of initscripts needs a

        umount -aa -e /proc -e /devfs

.. so that all filesystems are unmounted except those two.

This needs to be done by umount itself because scripting your way
out of umounting

        devfs  on /dev                  (needs to be skipped)
        devfs  on /var/chroot1/dev
        devpts on /var/chroot1/dev/pts  (needed by 2.5 kernels)

.. is basically impossible because of the interdependancies
(devpts and usbfs filesystems mounted on subdirs of devfs and proc)

If I have time (yeah right) I'll submit a patch.

Mike.


--- End Message ---
--- Begin Message ---
I believe modern inits keep track of container mounts and unmount
procfs et al as needed when shutting down.

If not, please send such a feature request upstream, see
https://github.com/karelzak/util-linux/issues

Thanks,
Chris

--- End Message ---

Reply via email to