From 3554138118c260690f406df66747237a8d26fbaf Mon Sep 17 00:00:00 2001 From: Wang He Date: Sun, 18 Sep 2016 12:00:13 +0200 Subject: [PATCH] Sync needed before remount R/O Signed-off-by: Wang He Signed-off-by: Joachim Nilsson --- sig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sig.c b/sig.c index 2dd5b5ac..a030d581 100644 --- a/sig.c +++ b/sig.c @@ -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 /");