mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
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:
parent
fe6fee210b
commit
67b4b17b22
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user