From e63625a7e1d82e35cc913e173e51c3be7f6be45c Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Fri, 7 Mar 2014 12:52:15 -0800 Subject: [PATCH] Only create a tmpfs big enough for DIB_MIN_TMPFS This will help to ensure images that would cause bug #1289582 would still fail even on systems that have more RAM. Also this will ensure we only reserve enough tmpfs space for this build. Change-Id: Icece64e691d126a5fc89262897630fdbef1ffdf1 --- lib/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common-functions b/lib/common-functions index 4873d781..21b7f9c5 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -31,7 +31,7 @@ function mk_build_dir () { [ $? -eq 0 ] || die "Failed to create tmp directory" export TMP_BUILD_DIR if tmpfs_check ; then - sudo mount -t tmpfs tmpfs $TMP_BUILD_DIR + sudo mount -t tmpfs tmpfs -o size=$(($DIB_MIN_TMPFS*2))G $TMP_BUILD_DIR fi sudo chown $(id -u):$(id -g) $TMP_BUILD_DIR trap cleanup EXIT