X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FChainBootNode.py;fp=source%2Fsteps%2FChainBootNode.py;h=e3c64d6abd2e488faae3a5a64413779742e2839f;hb=b784af8b7696d21f8e56a136a4040ce4538ea272;hp=b04756d6cae247521d9aab1d47f6b0080ff1fbb5;hpb=14b9df8e45d4877d3cd171d7d7fa2fd235dcc935;p=bootmanager.git diff --git a/source/steps/ChainBootNode.py b/source/steps/ChainBootNode.py index b04756d..e3c64d6 100644 --- a/source/steps/ChainBootNode.py +++ b/source/steps/ChainBootNode.py @@ -124,8 +124,11 @@ def Run( vars, log ): # update node packages log.write( "Running node update.\n" ) - cmd = "chroot %s /usr/bin/NodeUpdate.py start noreboot" \ - % SYSIMG_PATH + if os.path.exists( SYSIMG_PATH + "/usr/bin/NodeUpdate.py" ): + cmd = "chroot %s /usr/bin/NodeUpdate.py start noreboot" % SYSIMG_PATH + else: + # for backwards compatibility + cmd = "chroot %s /usr/local/planetlab/bin/NodeUpdate.py start noreboot" % SYSIMG_PATH utils.sysexec( cmd, log ) log.write( "Updating ssh public host key with PLC.\n" )