From 0003e244cb2677a5575f6a833e6e646ffb7b5f8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 19 Mar 2009 17:11:29 +0000 Subject: [PATCH] create SYSIMG_PATH/{vservers,proc} before trying to mount them. --- source/steps/ValidateNodeInstall.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) ) -- 2.43.0