mirror of
https://github.com/troglobit/finit.git
synced 2026-10-11 17:02:42 +07:00
Revert "Simplify shutdown, no need for workarounds to remount / read-only"
This reverts commit 7c42986800 since we
seem to still need this werid thing on some systems. The key seems
to use 'any' device at remount[1]. Anyway, the key issue before was
the noisy output, but like Debian we'll just redirect to /dev/null.
[1]: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/29187
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -328,8 +328,11 @@ void do_shutdown(shutop_t op)
|
||||
/* ... unmount remaining regular file systems. */
|
||||
unmount_regular();
|
||||
|
||||
/* We sit on / so we must remount it read-only */
|
||||
run("mount -n -o remount,ro -t none rootfs /", "mount");
|
||||
/* We sit on / so we must remount it ro, try all the things! */
|
||||
sync();
|
||||
run("mount -n -o remount,ro -t dummytype dummydev /", "mount");
|
||||
run("mount -n -o remount,ro dummydev /", "mount");
|
||||
run("mount -n -o remount,ro /", "mount");
|
||||
|
||||
/* Call mdadm to mark any RAID array(s) as clean before halting. */
|
||||
mdadm_wait();
|
||||
|
||||
Reference in New Issue
Block a user