From: Stephen Soltesz <soltesz@cs.princeton.edu>
Date: Fri, 17 Jul 2009 22:06:30 +0000 (+0000)
Subject: sync sys clock to hardware to prevent fsck reboot bug for systems with wrong
X-Git-Tag: BootManager-4.3-10~11
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e56dca286266de0ffda334ad80d89db198641624;p=bootmanager.git

sync sys clock to hardware to prevent fsck reboot bug for systems with wrong
	hardware clocks.  there may be a better place for this code in bm.
---

diff --git a/source/steps/ChainBootNode.py b/source/steps/ChainBootNode.py
index 09b7678..6d1e39e 100644
--- a/source/steps/ChainBootNode.py
+++ b/source/steps/ChainBootNode.py
@@ -266,6 +266,7 @@ def Run( vars, log ):
         # kargs, which is ramdisk_size=8192
         pass 
 
+    utils.sysexec_noerr( 'hwclock --systohc --utc ' )
     utils.breakpoint ("Before kexec");
     try:
         utils.sysexec( 'kexec --force --initrd=/tmp/initrd ' \