add noerr command for btrfs quota enable
authorStephen Soltesz <soltesz@opentechinstitute.org>
Thu, 14 Feb 2013 23:10:20 +0000 (15:10 -0800)
committerStephen Soltesz <soltesz@opentechinstitute.org>
Thu, 14 Feb 2013 23:10:20 +0000 (15:10 -0800)
source/steps/InstallBootstrapFS.py

index 46c4045..9ae2186 100644 (file)
@@ -85,6 +85,10 @@ def Run( vars, log ):
     utils.sysexec( "mount -t btrfs %s %s/vservers" % (PARTITIONS["vservers"],
                                                      SYSIMG_PATH), log )
 
+    # NOTE: btrfs quota is supported from version: >= btrfs-progs-0.20 (f18+)
+    #       older versions will not recongize the 'quota' command.
+    utils.sysexec_noerr( "btrfs quota enable %s/vservers" % SYSIMG_PATH )
+
     vars['ROOT_MOUNTED']= 1
 
     # call getNodeFlavour