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
10 lines
193 B
Bash
Executable file
10 lines
193 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
PIP_CACHE_DIR=$DIB_IMAGE_CACHE/pip
|
|
mkdir -p $PIP_CACHE_DIR
|
|
|
|
sudo mkdir -p $TMP_MOUNT_PATH/tmp/pip
|
|
sudo mount --bind $PIP_CACHE_DIR $TMP_MOUNT_PATH/tmp/pip
|