Revision
23614
Author
zarzycki@apple.com
Date
2008-04-30 14:32:53 -0700 (Wed, 30 Apr 2008)

Log Message

<rdar://problem/5865623> Boot fail count doesn't increase with unclean-boot issue

Modified Paths

Diff

Modified: branches/SULeopard/launchd/src/launchctl.c (23613 => 23614)


--- branches/SULeopard/launchd/src/launchctl.c	2008-04-30 21:14:41 UTC (rev 23613)
+++ branches/SULeopard/launchd/src/launchctl.c	2008-04-30 21:32:53 UTC (rev 23614)
@@ -2805,7 +2805,10 @@
 #if TARGET_OS_EMBEDDED
 	if (path_check("/etc/fstab")) {
 		const char *mount_tool[] = { "mount", "-vat", "nonfs", NULL };
-		assumes(fwexec(mount_tool, true) != -1);
+		if (!assumes(fwexec(mount_tool, true) != -1)) {
+			assumes(fwexec(nvram_tool, true) != -1);
+			assumes(reboot(RB_AUTOBOOT) != -1);
+		}
 	} else
 #endif
 	{