From: Thierry Parmentelat Date: Fri, 19 Sep 2008 09:10:14 +0000 (+0000) Subject: use /var/tmp for both chroot and vserver myplc X-Git-Tag: BootCD-4.2-5~3 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=406833a858a8d78805981cfeca961477da7f93f1 use /var/tmp for both chroot and vserver myplc --- 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