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:
Wang He
2016-09-18 12:00:16 +02:00
committed by Joachim Nilsson
parent f7d6d269c7
commit 3554138118
+1
View File
@@ -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 /");