mirror of
https://github.com/troglobit/finit.git
synced 2026-10-04 14:54:14 +07:00
Sync needed before remount R/O
Signed-off-by: Wang He <xw897002528@gmail.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -159,6 +159,7 @@ void do_shutdown(shutop_t op)
|
||||
unmount_regular();
|
||||
|
||||
/* We sit on / so we must remount it ro, try all the things! */
|
||||
run("sync");
|
||||
run("/bin/mount -n -o remount,ro -t dummytype dummydev /");
|
||||
run("/bin/mount -n -o remount,ro dummydev /");
|
||||
run("/bin/mount -n -o remount,ro /");
|
||||
|
||||
Reference in New Issue
Block a user