From 406833a858a8d78805981cfeca961477da7f93f1 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 19 Sep 2008 09:10:14 +0000 Subject: [PATCH] use /var/tmp for both chroot and vserver myplc --- build.sh | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/build.sh b/build.sh index 0535962..f0275e7 100755 --- a/build.sh +++ b/build.sh @@ -99,19 +99,8 @@ function init_and_check () { . /etc/planetlab/plc_config fi - # From within a myplc chroot /usr/tmp is too small - # to build all possible images, whereas /data is part of the host - # filesystem and usually has sufficient space. What we - # should do is check whether the expected amount of space - # is available. - BUILDTMP=/usr/tmp - if [ -d /data/tmp ] ; then - isreadonly=$(mktemp /data/tmp/isreadonly.XXXXXX || /bin/true) - if [ -n "$isreadonly" ] ; then - rm -f "$isreadonly" - BUILDTMP=/data/tmp - fi - fi + # use /var/tmp that should be large enough on both chroot- or vserver-based myplc + BUILDTMP=/var/tmp FULL_VERSION_STRING="${PLC_NAME} BootCD ${BOOTCD_VERSION}" @@ -363,9 +352,7 @@ EOF # Create ISO image echo "* Creating ISO image" - mkisofs -o "$iso" \ - $MKISOFS_OPTS \ - $ISOFS + mkisofs -o "$iso" $MKISOFS_OPTS $ISOFS } #################### USB with partitions -- 2.43.0