git://git.onelab.eu
/
bootmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14b9df8
)
Changed NodeUpdate's path. Nothing should exist in /usr/local.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Wed, 22 Aug 2007 15:43:47 +0000
(15:43 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Wed, 22 Aug 2007 15:43:47 +0000
(15:43 +0000)
source/steps/ChainBootNode.py
patch
|
blob
|
history
diff --git
a/source/steps/ChainBootNode.py
b/source/steps/ChainBootNode.py
index
b04756d
..
e3c64d6
100644
(file)
--- 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" )