From: Barış Metin Date: Thu, 19 Mar 2009 17:11:29 +0000 (+0000) Subject: create SYSIMG_PATH/{vservers,proc} before trying to mount them. X-Git-Tag: BootManager-4.3-3~4 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=0003e244cb2677a5575f6a833e6e646ffb7b5f8e create SYSIMG_PATH/{vservers,proc} before trying to mount them. --- diff --git a/source/steps/ValidateNodeInstall.py b/source/steps/ValidateNodeInstall.py index 0d1d165..393e8f5 100644 --- a/source/steps/ValidateNodeInstall.py +++ b/source/steps/ValidateNodeInstall.py @@ -98,13 +98,16 @@ def Run( vars, log ): # then attempt to mount them log.write( "mounting root file system\n" ) utils.sysexec("mount -t ext3 %s %s" % (PARTITIONS["root"],SYSIMG_PATH),log) - + + VSERVERS_PATH = "%s/vservers" % SYSIMG_PATH + utils.makedirs(VSERVERS_PATH) log.write( "mounting vserver partition in root file system\n" ) - utils.sysexec("mount -t ext3 %s %s/vservers" % \ - (PARTITIONS["vservers"], SYSIMG_PATH), log) + utils.sysexec("mount -t ext3 %s %s" % (PARTITIONS["vservers"], VSERVERS_PATH), log) + PROC_PATH = "%s/proc" % SYSIMG_PATH + utils.makedirs(PROC_PATH) log.write( "mounting /proc\n" ) - utils.sysexec( "mount -t proc none %s/proc" % SYSIMG_PATH, log ) + utils.sysexec( "mount -t proc none %s" % PROC_PATH, log ) except BootManagerException, e: log.write( "BootManagerException during mount of /root, /vservers and /proc: %s\n" % str(e) )