about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nitro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nitro.c b/nitro.c
index 545ea15..8c5ba2d 100644
--- a/nitro.c
+++ b/nitro.c
@@ -1568,15 +1568,15 @@ main(int argc, char *argv[])
 		alarm(0);
 	}
 	if (real_pid1) {
-		prn(2, "- nitro: system %s\n",
-		    global_state == GLBL_WANT_REBOOT ? "reboot" : "halt");
-
 		sync();
 		if (mount("/", "/", "", MS_REMOUNT | MS_RDONLY, "") < 0)
 			prn(2, "- nitro: could not remount / read-only: errno=%d\n", errno);
 		else
 			prn(2, "- nitro: remounted / read-only\n");
 
+		prn(2, "- nitro: system %s\n",
+		    global_state == GLBL_WANT_REBOOT ? "reboot" : "halt");
+
 		sleep(1);
 
 		if (global_state == GLBL_WANT_REBOOT) {