diskimage-builder/elements/zypper/root.d/50-zypper-cache

13 lines
247 B
Plaintext
Raw Normal View History

#!/bin/bash
set -eu
set -o pipefail
[ -n "$TARGET_ROOT" ]
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