oem: inflate images into /var/tmp

tmpfs shouldn't be used for large images like this. Inflate the archives
on disk instead.
This commit is contained in:
Alex Crawford 2016-06-08 17:42:53 -07:00
parent fe6fee210b
commit 67b4b17b22
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ fi
export EC2_URL="https://ec2.${region}.amazonaws.com"
echo "Building AMI in zone ${EC2_IMPORT_ZONE}"
tmpdir=$(mktemp -d)
tmpdir=$(mktemp --directory --tmpdir=/var/tmp)
trap "rm -rf '${tmpdir}'" EXIT
# if it is on the local fs, just use it, otherwise try to download it

View File

@ -11,7 +11,7 @@ DIR=$(dirname $0)
set -e
WORKDIR=$(mktemp --directory)
WORKDIR=$(mktemp --directory --tmpdir=/var/tmp)
trap "rm --force --recursive ${WORKDIR}" SIGINT SIGTERM EXIT
IMAGE_PATH="${WORKDIR}/coreos_production_azure_image.vhd"