We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a5ca0d + 0f4256e commit 120b130Copy full SHA for 120b130
pkg/cidata/cidata.TEMPLATE.d/boot/04-persistent-data-volume.sh
@@ -50,6 +50,11 @@ if [ "$(awk '$2 == "/" {print $3}' /proc/mounts)" == "tmpfs" ]; then
50
for MP in $(mount | awk '$3 ~ /^\/tmp\// {print $3}'); do
51
umount "${MP}"
52
done
53
+ # setup apk package cache
54
+ mkdir -p /mnt/data/apk/cache
55
+ mkdir -p /etc/apk
56
+ ln -s /mnt/data/apk/cache /etc/apk/cache
57
+ # Move all persisted directories to the data volume
58
for DIR in ${DATADIRS}; do
59
DEST="/mnt/data$(dirname "${DIR}")"
60
mkdir -p "${DIR}" "${DEST}"
0 commit comments