X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallPartitionDisks.py;h=778f84ade940d88e73e083877299abe14995e8f7;hb=fca6efe0925c4405bcaae76b86bcc04aacd3a19c;hp=b469330a31a81e49779f70d7acf7b1dd1dd41969;hpb=9587f78331eafa5d021d72d18fbefd685badea8b;p=bootmanager.git diff --git a/source/steps/InstallPartitionDisks.py b/source/steps/InstallPartitionDisks.py index b469330..778f84a 100644 --- a/source/steps/InstallPartitionDisks.py +++ b/source/steps/InstallPartitionDisks.py @@ -158,17 +158,23 @@ def Run( vars, log ): # filesystems partitions names and their corresponding # reserved-blocks-percentages filesystems = {"root":5,"vservers":0} - - # make the file systems - for fs in filesystems.keys(): - # get the reserved blocks percentage - rbp = filesystems[fs] - devname = PARTITIONS[fs] - 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 ) + + # ROOT filesystem with ext2 + fs = 'root' + rbp = filesystems[fs] + devname = PARTITIONS[fs] + 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 ) + + # VSERVER filesystem with btrfs to support snapshoting and stuff + fs = 'vservers' + rbp = filesystems[fs] + devname = PARTITIONS[fs] + log.write("formatting %s partition (%s)%s.\n" % (fs,devname,txt)) + utils.sysexec( "mkfs.btrfs %s" % (devname), log ) # disable time/count based filesystems checks - for filesystem in ("root","vservers"): + for filesystem in ["root"]: utils.sysexec_noerr( "tune2fs -c -1 -i 0 %s" % PARTITIONS[filesystem], log) # save the list of block devices in the log