From b6438b9c8fa30cb865ccc854011a74f4fa8f38a6 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Wed, 2 Nov 2011 14:13:13 +0200 Subject: [PATCH] bin/mktmpdir: lower the space bar With not-that-recent mkimage-profiles development, it's no longer apparent that at least a gigabyte of free space is required to build something useful (at least for the tests, like syslinux.iso). In short, the guesser cutoff margin is now 256M. --- bin/mktmpdir | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mktmpdir b/bin/mktmpdir index 82dcf77a..4dc2659c 100755 --- a/bin/mktmpdir +++ b/bin/mktmpdir @@ -3,9 +3,9 @@ # hope there aren't spaces in RM's $HOME are they? DIRS="$TMP $TMPDIR $HOME/hasher /tmp /var/tmp" -MINSIZE=1048576 # face control criterion +MINSIZE=262144 # face control criterion -# pick existing, writeable, >1Gb free space dirs +# pick existing, writeable, >256M free space dirs # rank them wrt type: tmpfs > realfs > rootfs choose_tmpdir() { for i in $DIRS; do @@ -26,4 +26,4 @@ choose_tmpdir() { } DIR="`choose_tmpdir`" -mktemp -d "${1:-tmpdir}.XXXXXXXXXX" --tmpdir="${DIR:-`realpath ..`}" +mktemp -d "${1:-tmpdir}.XXXXXXX" --tmpdir="${DIR:-`realpath ..`}"