Use DIB_IMAGE_CACHE everywhere
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
This commit is contained in:
parent
07f11be024
commit
3acc866f6d
@ -9,7 +9,7 @@ set -o pipefail
|
|||||||
# after automatically pulling in the Ubuntu element)
|
# after automatically pulling in the Ubuntu element)
|
||||||
grep " $TMP_MOUNT_PATH/tmp/ccache" /proc/mounts && exit
|
grep " $TMP_MOUNT_PATH/tmp/ccache" /proc/mounts && exit
|
||||||
|
|
||||||
DIB_CCACHE_DIR=${DIB_CCACHE_DIR:-$HOME/.cache/image-create/ccache}
|
DIB_CCACHE_DIR=${DIB_CCACHE_DIR:-$DIB_IMAGE_CACHE/ccache}
|
||||||
mkdir -p $DIB_CCACHE_DIR
|
mkdir -p $DIB_CCACHE_DIR
|
||||||
|
|
||||||
sudo mkdir -p $TMP_MOUNT_PATH/tmp/ccache
|
sudo mkdir -p $TMP_MOUNT_PATH/tmp/ccache
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
PIP_CACHE_DIR=$HOME/.cache/image-create/pip
|
PIP_CACHE_DIR=$DIB_IMAGE_CACHE/pip
|
||||||
mkdir -p $PIP_CACHE_DIR
|
mkdir -p $PIP_CACHE_DIR
|
||||||
|
|
||||||
sudo mkdir -p $TMP_MOUNT_PATH/tmp/pip
|
sudo mkdir -p $TMP_MOUNT_PATH/tmp/pip
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
MIRROR_SOURCE=~/.cache/image-create/pypi/mirror/
|
MIRROR_SOURCE=$DIB_IMAGE_CACHE/pypi/mirror/
|
||||||
if [ -d "$MIRROR_SOURCE" ]; then
|
if [ -d "$MIRROR_SOURCE" ]; then
|
||||||
MIRROR_TARGET=$TMP_MOUNT_PATH/tmp/pypi
|
MIRROR_TARGET=$TMP_MOUNT_PATH/tmp/pypi
|
||||||
|
|
||||||
|
@ -197,8 +197,8 @@ function get_repos_for_element(){
|
|||||||
done < $REPO_SOURCES
|
done < $REPO_SOURCES
|
||||||
}
|
}
|
||||||
|
|
||||||
CACHE_BASE=~/.cache/image-create/source-repositories
|
CACHE_BASE=$DIB_IMAGE_CACHE/source-repositories
|
||||||
OLD_CACHE_BASE=~/.cache/image-create/repository-sources
|
OLD_CACHE_BASE=$DIB_IMAGE_CACHE/repository-sources
|
||||||
make_new_cache $OLD_CACHE_BASE $CACHE_BASE
|
make_new_cache $OLD_CACHE_BASE $CACHE_BASE
|
||||||
mkdir -p $CACHE_BASE
|
mkdir -p $CACHE_BASE
|
||||||
# Use the IMAGE_NAME from the calling script, and make it unique with the temporary path
|
# Use the IMAGE_NAME from the calling script, and make it unique with the temporary path
|
||||||
|
@ -5,7 +5,7 @@ set -o pipefail
|
|||||||
|
|
||||||
[ -n "$TARGET_ROOT" ]
|
[ -n "$TARGET_ROOT" ]
|
||||||
|
|
||||||
YUM_CACHE_DIR=~/.cache/image-create/yum
|
YUM_CACHE_DIR=$DIB_IMAGE_CACHE/yum
|
||||||
mkdir -p $YUM_CACHE_DIR
|
mkdir -p $YUM_CACHE_DIR
|
||||||
|
|
||||||
sudo mkdir -p $TMP_MOUNT_PATH/tmp/yum
|
sudo mkdir -p $TMP_MOUNT_PATH/tmp/yum
|
||||||
|
@ -5,7 +5,7 @@ set -o pipefail
|
|||||||
|
|
||||||
[ -n "$TARGET_ROOT" ]
|
[ -n "$TARGET_ROOT" ]
|
||||||
|
|
||||||
ZYPPER_CACHE_DIR=~/.cache/image-create/zypper
|
ZYPPER_CACHE_DIR=$DIB_IMAGE_CACHE/zypper
|
||||||
mkdir -p $ZYPPER_CACHE_DIR
|
mkdir -p $ZYPPER_CACHE_DIR
|
||||||
|
|
||||||
sudo mkdir -p $TMP_MOUNT_PATH/var/cache/zypp
|
sudo mkdir -p $TMP_MOUNT_PATH/var/cache/zypp
|
||||||
|
Loading…
Reference in New Issue
Block a user