move the UpdateNodeConfiguration step after the NodeUpdate step in ChainBoot
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 27 Jun 2008 20:24:12 +0000 (20:24 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 27 Jun 2008 20:24:12 +0000 (20:24 +0000)
source/BootManager.py
source/steps/ChainBootNode.py

index 1d59243..2098c41 100755 (executable)
@@ -193,8 +193,6 @@ class BootManager:
                 WriteModprobeConfig.Run( self.VARS, self.LOG )
                 MakeInitrd.Run( self.VARS, self.LOG )
                 WriteNetworkConfig.Run( self.VARS, self.LOG )
-                # the following step should be done by NM
-                UpdateNodeConfiguration.Run( self.VARS, self.LOG )
                 CheckForNewDisks.Run( self.VARS, self.LOG )
                 SendHardwareConfigToPLC.Run( self.VARS, self.LOG )
                 ChainBootNode.Run( self.VARS, self.LOG )
index d241268..10f068e 100644 (file)
@@ -12,6 +12,7 @@ import re
 import os
 
 import UpdateBootStateWithPLC
+import UpdateNodeConfiguration
 from Exceptions import *
 import utils
 import compatibility
@@ -132,6 +133,9 @@ def Run( vars, log ):
         cmd = "chroot %s /usr/local/planetlab/bin/NodeUpdate.py start noreboot" % SYSIMG_PATH
     utils.sysexec( cmd, log )
 
+    # the following step should be done by NM
+    UpdateNodeConfiguration.Run( vars, log )
+
     log.write( "Updating ssh public host key with PLC.\n" )
     ssh_host_key= ""
     try: