From: Stephen Soltesz Date: Sat, 10 Jan 2009 01:12:47 +0000 (+0000) Subject: run fsck prior to mount. should address hanging-mount failures on X-Git-Tag: BootManager-3.2-16~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=626295f0fbdd02e714ad26f6ced43478391f3ba0;p=bootmanager.git run fsck prior to mount. should address hanging-mount failures on /dev/planetlab/vservers --- diff --git a/source/steps/ValidateNodeInstall.py b/source/steps/ValidateNodeInstall.py index 7505335..278fea6 100644 --- a/source/steps/ValidateNodeInstall.py +++ b/source/steps/ValidateNodeInstall.py @@ -93,6 +93,18 @@ def Run( vars, log ): utils.makedirs( SYSIMG_PATH ) try: + # first run fsck to prevent fs corruption from hanging mount... + log.write( "fsck root file system\n" ) + utils.sysexec("e2fsck -v -p %s" % (PARTITIONS["root"]),log) + + log.write( "fsck vserver file system\n" ) + utils.sysexec("e2fsck -v -p %s" % (PARTITIONS["vservers"]),log) + except BootManagerException, e: + log.write( "BootManagerException during fsck of /root and /vservers : %s\n" % + str(e) ) + + try: + # then attempt to mount them log.write( "mounting root file system\n" ) utils.sysexec("mount -t ext3 %s %s" % (PARTITIONS["root"],SYSIMG_PATH),log)