Red Hat Bugzilla – Bug 50461
non-ext2 root filesystem is not unmounted on shutdown
Last modified: 2014-03-16 22:22:14 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.19 i686; en-US; rv:0.9.1)
Description of problem:
/etc/init.d/halt umounts all filesystems not matching
/(^#|proc|loopfs|autofs|^none|^\/dev\/root| \/ )/
and then it remount read-only filesystems matching /ext2/ (and ummounts
proc). Thus when root filesystem is not ext2, it is neither unmounted
(which is ok) nor remounted read-only (which is bad).
Steps to Reproduce:
1. setup system to use reiserfs (for example) root filesystem
2. run poweroff / halt / reboot
Actual Results: Root file system is left mounted read-write on shutdown,
journal log replay starts on next boot.
Expected Results: Root file system is remounted read-only on shutdown.
I fixed it using the same sematics for what is excluded from unmounting and
what is then remounted read only. Patch attached.
Created attachment 25592 [details]
Will be fixed in 6.11-1; thanks for the patch!
*** Bug 50752 has been marked as a duplicate of this bug. ***