When the localmount service is stopped (e.g. on a reboot, shutdown or telinit 1) it unmounts local filesystems, skipping /, /dev and §RC_NO_UNMOUNTS. I propose to hardcode /usr, too. With recent changes in udev, lvm, etc. pp. it is mandatory to have /usr mounted in an initramfs prior to init startup. It therefore doesn't make terribly much sense to unmount /usr too early (or at all). Two examples: - It is not possible to make a clean "init 1 && init 3" because of udev, lvm, microcode-ctl (and some more) failing in unpredictable ways because of missing /usr - Normal system shutdown fails in unpredictable ways as soon as /usr is unmounted. Reproducible: Always
Created attachment 311459 [details] emerge --info
Created attachment 311461 [details, diff] proposed change in localmount
My concern about the change as you propose it is that it affects both linux and *bsd systems, but we should only skip /usr on linux systems.
(In reply to comment #3) *mhm* This is indeed true. What about providing a default value of RC_NO_UMOUNTS="/usr" for the ebuild for Gentoo-Linux?
(In reply to comment #3) i don't think it matters. remounting /usr read-only should work on any system.
The only difference between the patch on this bug and the fix is that /usr needed to be added to the regexp only for linux systems. This has been done in commit ee1a698. Thanks for the report.