X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=source%2Fsteps%2FInstallInit.py;h=eb2c18f046d7315e2a6c73ef4d6e25bef27763a7;hb=644716f1b688e140b5be6ce44342197fa3f69136;hp=8182002827656717fb718f1289de4c69e4696b58;hpb=91a76ce91d7363b2907f8cda4b29071cc64de480;p=bootmanager.git diff --git a/source/steps/InstallInit.py b/source/steps/InstallInit.py index 8182002..eb2c18f 100644 --- a/source/steps/InstallInit.py +++ b/source/steps/InstallInit.py @@ -91,7 +91,14 @@ def Run( vars, log ): # so who knows what the current state is log.write( "Unmounting any previous mounts\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 %s/proc" % SYSIMG_PATH, log ) utils.sysexec_noerr( "umount %s/mnt/cdrom" % SYSIMG_PATH, log ) utils.sysexec_noerr( "umount %s/vservers" % SYSIMG_PATH, log )