Author: sparky
Date: Sun Jan 23 20:46:58 2011
New Revision: 12077

Modified:
   toys/tools/cleanbuild/cleanbuild
Log:
- configurable tmpfs chroot size; 4G by default (NOTE: kernel requires ~10G)


Modified: toys/tools/cleanbuild/cleanbuild
==============================================================================
--- toys/tools/cleanbuild/cleanbuild    (original)
+++ toys/tools/cleanbuild/cleanbuild    Sun Jan 23 20:46:58 2011
@@ -8,6 +8,7 @@
 RPMMACROS=""
 BUILDERRC=""
 IGNORE=""
+CHROOTSIZE="4G"
 ignore() { IGNORE="$IGNORE $*"; }
 NODEBUG=true
 CLEANAFTER=false
@@ -114,6 +115,9 @@
                        DEST="$V"
                        SRC="-n $V-ready"
                        ;;
+               -[1-9]G | -[1-9][0-9]G )
+                       CHROOTSIZE="$V"
+                       ;;
                --cleanafter | -ca)
                        CLEANAFTER=true
                        ;;
@@ -275,7 +279,7 @@
        set -e
        $NODEBUG || set -x
        mkdir $CHDIR
-       mount -t tmpfs -o size=8G,relatime /dev/null $CHDIR
+       mount -t tmpfs -o size=$CHROOTSIZE,relatime /dev/null $CHDIR
        echo $$ > $CHDIR/.pid
 
        rpm --root=$CHDIR --initdb 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to