3acc866f6d
disk-image-create processes a DIB_IMAGE_CACHE variable and exports it, but there are several elements that ignore the value and wrote out the base location themselves. Use the variable everywhere so that it will get overridden everywhere. Change-Id: I00fff354d6c931ad67cf3052d055f0e4604dfdc8
13 lines
262 B
Bash
Executable File
13 lines
262 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
MIRROR_SOURCE=$DIB_IMAGE_CACHE/pypi/mirror/
|
|
if [ -d "$MIRROR_SOURCE" ]; then
|
|
MIRROR_TARGET=$TMP_MOUNT_PATH/tmp/pypi
|
|
|
|
sudo mkdir -p $MIRROR_SOURCE $MIRROR_TARGET
|
|
sudo mount --bind $MIRROR_SOURCE $MIRROR_TARGET
|
|
fi
|