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

13 lines
242 B
Text
Raw Normal View History

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