Skip to content

Commit dd7328a

Browse files
committed
Move all of /var/lib to the persistent data volume
Instead of adding e.g. /var/lib/buildkit in a provisioning script, it makes more sense to move all of /var/lib to /mnt/data/var/lib. Similarly buildkit seems to create big subdirectories under /tmp that look like chroots, so lets move that to the data volume as well to prevent buildkit from running out of space. Signed-off-by: Jan Dubois <[email protected]>
1 parent 682b377 commit dd7328a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/05-persistent-data-volume.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -eux -o pipefail
77
test -f /etc/alpine-release || exit 0
88

99
# Data directories that should be persisted across reboots
10-
DATADIRS="/etc/ssh /home /usr/local /etc/containerd /var/lib/containerd"
10+
DATADIRS="/etc/containerd /etc/ssh /home /tmp /usr/local /var/lib"
1111

1212
# When running from RAM try to move persistent data to data-volume
1313
# FIXME: the test for tmpfs mounts is probably Alpine-specific

0 commit comments

Comments
 (0)