merge initrd changes from trunk
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Fri, 19 Feb 2010 22:56:40 +0000 (22:56 +0000)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Fri, 19 Feb 2010 22:56:40 +0000 (22:56 +0000)
source/BootManager.py
source/steps/ChainBootNode.py

index cdd2cfa..c0cb6c1 100755 (executable)
@@ -224,7 +224,6 @@ class BootManager:
             ret = ValidateNodeInstall.Run( self.VARS, self.LOG )
             if ret == 1:
                 WriteModprobeConfig.Run( self.VARS, self.LOG )
-                MakeInitrd.Run( self.VARS, self.LOG )
                 WriteNetworkConfig.Run( self.VARS, self.LOG )
                 CheckForNewDisks.Run( self.VARS, self.LOG )
                 SendHardwareConfigToPLC.Run( self.VARS, self.LOG )
index 16dd38d..acf3162 100644 (file)
@@ -12,6 +12,7 @@ import re
 import os
 
 import UpdateNodeConfiguration
+import MakeInitrd
 from Exceptions import *
 import utils
 import systeminfo
@@ -122,6 +123,9 @@ def Run( vars, log ):
         cmd = "/usr/local/planetlab/bin/NodeUpdate.py start noreboot"
     utils.sysexec_chroot( SYSIMG_PATH, cmd, log )
 
+    # Re-generate initrd right before kexec call
+    MakeInitrd.Run( vars, log )
+
     # the following step should be done by NM
     UpdateNodeConfiguration.Run( vars, log )