From 6077bd8b06664ba4357b816232440570de53a4e6 Mon Sep 17 00:00:00 2001 From: Chris Krelle Date: Tue, 24 Jun 2014 16:28:50 -0700 Subject: [PATCH] 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 --- elements/zypper/root.d/50-zypper-cache | 1 + 1 file changed, 1 insertion(+) diff --git a/elements/zypper/root.d/50-zypper-cache b/elements/zypper/root.d/50-zypper-cache index 947499ef..101dd7cb 100755 --- a/elements/zypper/root.d/50-zypper-cache +++ b/elements/zypper/root.d/50-zypper-cache @@ -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