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

11 lines
193 B
Text
Raw Normal View History

#!/bin/bash
set -eu
set -o pipefail
PIP_CACHE_DIR=$DIB_IMAGE_CACHE/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