sync sys clock to hardware to prevent fsck reboot bug for systems with wrong
authorStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 17 Jul 2009 22:06:30 +0000 (22:06 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 17 Jul 2009 22:06:30 +0000 (22:06 +0000)
hardware clocks.  there may be a better place for this code in bm.

source/steps/ChainBootNode.py

index 09b7678..6d1e39e 100644 (file)
@@ -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 ' \