Skip to content

Commit ae42ff6

Browse files
committed
Store download tarball in temp directory to allow concurrent access
1 parent 0407799 commit ae42ff6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

simpleimage/make_rootfs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ EOF
161161
}
162162

163163
mkdir -p $BUILD
164-
TARBALL="$BUILD/$(basename $ROOTFS)"
164+
TARBALL="$TEMP/$(basename $ROOTFS)"
165165
mkdir -p "$BUILD"
166166
if [ ! -e "$TARBALL" ]; then
167167
if [ "$METHOD" = "download" ]; then
@@ -182,6 +182,7 @@ echo -n "Extracting ... "
182182
set -x
183183
$UNTAR "$TARBALL" -C "$DEST"
184184
echo "OK"
185+
rm -f "$TARBALL"
185186

186187
# Add qemu emulation.
187188
cp /usr/bin/qemu-aarch64-static "$DEST/usr/bin"

0 commit comments

Comments
 (0)