diff --git a/test/upstart-jobs/halt.nix b/test/upstart-jobs/halt.nix index f259ea77cc9..71e9ae1b536 100644 --- a/test/upstart-jobs/halt.nix +++ b/test/upstart-jobs/halt.nix @@ -15,8 +15,20 @@ script echo \"<<< SYSTEM SHUTDOWN >>>\" echo \"\" + # Do an initial sync just in case. + sync || true + + # Unmount file systems. + umount -n -a || true + + # Remount / read-only + mount -n -o remount,ro /dontcare / || true + + # Final sync. + sync || true + # Right now all events above power off the system. - exec halt -f -p + exec halt -f end script ";