SVN: toys/tools/cleanbuild/cleanbuild

sparky sparky at pld-linux.org
Sun Jan 23 20:46:58 CET 2011


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 


More information about the pld-cvs-commit mailing list