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

13 lines
221 B
Text
Raw Normal View History

#!/bin/bash
set -eu
set -o pipefail
[ -n "$TARGET_ROOT" ]
YUM_CACHE_DIR=~/.cache/image-create/yum
mkdir -p $YUM_CACHE_DIR
sudo mkdir -p $TMP_MOUNT_PATH/tmp/yum
sudo mount --bind $YUM_CACHE_DIR $TMP_MOUNT_PATH/tmp/yum