X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FChainBootNode.py;h=dc55c83633ba892c6dff4469284ed15887b0fad3;hb=644716f1b688e140b5be6ce44342197fa3f69136;hp=d9e7226d2f93ab4ea440720c7294b355c25f14d4;hpb=91a76ce91d7363b2907f8cda4b29071cc64de480;p=bootmanager.git diff --git a/source/steps/ChainBootNode.py b/source/steps/ChainBootNode.py index d9e7226..dc55c83 100644 --- a/source/steps/ChainBootNode.py +++ b/source/steps/ChainBootNode.py @@ -1,5 +1,6 @@ import string import re +import os import InstallWriteConfig import UpdateBootStateWithPLC @@ -125,7 +126,12 @@ def Run( vars, log ): utils.sysexec( "cp %s/boot/initrd-boot /tmp/initrd" % SYSIMG_PATH, log ) log.write( "Unmounting disks.\n" ) - utils.sysexec_noerr( "chroot %s umount /rcfs" % SYSIMG_PATH, log ) + try: + # backwards compat, though, we should never hit this case post PL 3.2 + os.stat("%s/rcfs/taskclass"%SYSIMG_PATH) + utils.sysexec_noerr( "chroot %s umount /rcfs" % SYSIMG_PATH, log ) + except OSError, e: + pass utils.sysexec_noerr( "umount -r /dev/planetlab/vservers", log ) utils.sysexec_noerr( "umount -r /dev/planetlab/root", log ) utils.sysexec_noerr( "vgchange -an", log )