X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Finstaller%2Fdownloadsource.sh;h=c74f9e232d2e1dc1874152ca71508736bb903c3c;hb=77c863a2f113404a7f30b8591b9972291328980b;hp=4a48686ea9453560065f80bf3a5d945f37f3f525;hpb=c0511f3ab35cc059e0777b7481eaee105c738f5e;p=ipfire-2.x.git diff --git a/src/installer/downloadsource.sh b/src/installer/downloadsource.sh index 4a48686ea9..c74f9e232d 100644 --- a/src/installer/downloadsource.sh +++ b/src/installer/downloadsource.sh @@ -31,6 +31,15 @@ fi OUTPUT="${1}" URL="${2}" +# Mount a tmpfs which is big enough to hold the ISO image +OUTPUT_DIR="${OUTPUT%/*}" + +mkdir -p "${OUTPUT_DIR}" +if ! mount -t tmpfs none "${OUTPUT_DIR}" -o size=512M; then + echo "Could not mount tmpfs to ${OUTPUT_DIR}" >&2 + exit 1 +fi + echo "Downloading ${URL}..." if ! download -O "${OUTPUT}" "${URL}"; then echo "Download failed" >&2