From: S.Çağlar Onur Date: Wed, 28 Jul 2010 04:30:13 +0000 (-0400) Subject: disable time/count based filesystems checks X-Git-Tag: bootmanager-5.0-8~1 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=ce5f6ae6602b6bfcd8739399b00f7728d41f4f38 disable time/count based filesystems checks --- diff --git a/source/steps/InstallPartitionDisks.py b/source/steps/InstallPartitionDisks.py index 86b9493..893f279 100644 --- a/source/steps/InstallPartitionDisks.py +++ b/source/steps/InstallPartitionDisks.py @@ -163,6 +163,10 @@ def Run( vars, log ): log.write("formatting %s partition (%s)%s.\n" % (fs,devname,txt)) utils.sysexec( "mkfs.ext2 -q %s -m %d -j %s" % (option,rbp,devname), log ) + # disable time/count based filesystems checks + for filesystem in ("root","vservers"): + utils.sysexec_noerr( "tune2fs -c -1 -i 0 %s" PARTITIONS[filesystem], log) + # save the list of block devices in the log log.write( "Block devices used (in lvm): %s\n" % repr(used_devices)) diff --git a/source/steps/ValidateNodeInstall.py b/source/steps/ValidateNodeInstall.py index 8ff7645..07e3cef 100644 --- a/source/steps/ValidateNodeInstall.py +++ b/source/steps/ValidateNodeInstall.py @@ -101,6 +101,9 @@ def Run( vars, log ): log.write( "BootManagerException during trying to recover filesystem errors on %s (%s) filesystem : %s\n" % (filesystem, PARTITIONS[filesystem], str(e)) ) return -1 + else: + # disable time/count based filesystems checks + utils.sysexec_noerr( "tune2fs -c -1 -i 0 %s" PARTITIONS[filesystem], log) try: # then attempt to mount them