Skip to content

Commit

Permalink
Store download tarball in temp directory to allow concurrent access
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed May 6, 2017
1 parent 0407799 commit ae42ff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simpleimage/make_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ EOF
}

mkdir -p $BUILD
TARBALL="$BUILD/$(basename $ROOTFS)"
TARBALL="$TEMP/$(basename $ROOTFS)"
mkdir -p "$BUILD"
if [ ! -e "$TARBALL" ]; then
if [ "$METHOD" = "download" ]; then
Expand All @@ -182,6 +182,7 @@ echo -n "Extracting ... "
set -x
$UNTAR "$TARBALL" -C "$DEST"
echo "OK"
rm -f "$TARBALL"

# Add qemu emulation.
cp /usr/bin/qemu-aarch64-static "$DEST/usr/bin"
Expand Down

0 comments on commit ae42ff6

Please sign in to comment.