diskimage-builder/elements/pip-cache/root.d/01-pip-cache

11 lines
202 B
Text
Raw Normal View History

#!/bin/bash
set -eu
set -o pipefail
PIP_CACHE_DIR=$HOME/.cache/image-create/pip
mkdir -p $PIP_CACHE_DIR
sudo mkdir -p $TMP_MOUNT_PATH/tmp/pip
sudo mount --bind $PIP_CACHE_DIR $TMP_MOUNT_PATH/tmp/pip