mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00: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:
1 parent
f7d6d269c7
commit
3554138118
1 file changed
+1
@@ -159,6 +159,7 @@ void do_shutdown(shutop_t op)
|
|||||||
unmount_regular();
|
unmount_regular();
|
||||||
|
|
||||||
/* We sit on / so we must remount it ro, try all the things! */
|
/* 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 -t dummytype dummydev /");
|
||||||
run("/bin/mount -n -o remount,ro dummydev /");
|
run("/bin/mount -n -o remount,ro dummydev /");
|
||||||
run("/bin/mount -n -o remount,ro /");
|
run("/bin/mount -n -o remount,ro /");
|
||||||
|
|||||||
Reference in new issue
Block a user