From 54f6e4fc713ff2fbddf66ae0df578a5eeb01300c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 20 Nov 2006 21:19:34 +0000 Subject: [PATCH] * Unmount file systems. svn path=/nixu/trunk/; revision=7084 --- test/upstart-jobs/halt.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 ";