Ensure cache directory exists before use
Ensure cache mount directory exists before its used. The zypper element would error when attempting to mount the cache directory because the mount point did not exist. This patch corrects that. Change-Id: Iaa3c2a0254b12bd847643a61a99f5a234097fd21
This commit is contained in:
@@ -8,4 +8,5 @@ set -o pipefail
|
||||
ZYPPER_CACHE_DIR=~/.cache/image-create/zypper
|
||||
mkdir -p $ZYPPER_CACHE_DIR
|
||||
|
||||
sudo mkdir -p $TMP_MOUNT_PATH/var/cache/zypp
|
||||
sudo mount --bind $ZYPPER_CACHE_DIR $TMP_MOUNT_PATH/var/cache/zypp
|
||||
|
Reference in New Issue
Block a user