From 00192edbb3c30b4d24b069d7f90524fde764342e Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Thu, 14 Aug 2025 12:31:03 -0700 Subject: [PATCH] Fixing persistent storage filesystem/mount. --- flatcar/cl.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/flatcar/cl.yaml b/flatcar/cl.yaml index 0689f64..d2ad17c 100644 --- a/flatcar/cl.yaml +++ b/flatcar/cl.yaml @@ -11,7 +11,7 @@ systemd: enabled: true contents: | [Mount] - What=/dev/disk/by-label/appstorage + What=/dev/disk/by-partlabel/appstorage Where=/var/lib/docker/volumes Type=ext4 @@ -24,6 +24,13 @@ systemd: ### https://flatcar.github.io/sysext-bakery/docker_compose/ - name: systemd-sysupdate.timer enabled: true + - name: docker.service + dropins: + - name: 10-wait-docker.conf + contents: | + [Unit] + After=var-lib-docker-volumes.mount + Requires=var-lib-docker-volumes.mount - name: systemd-sysupdate.service dropins: - name: docker-compose.conf @@ -35,8 +42,14 @@ systemd: ExecStartPost=/usr/bin/sh -c "if ! cmp --silent /tmp/docker-compose /tmp/docker-compose-new; then touch /run/reboot-required; fi" storage: - filesystems: + disks: - device: /dev/disk/by-label/appstorage + wipe_table: false + partitions: + - label: appstorage + number: 0 + filesystems: + - device: /dev/disk/by-partlabel/appstorage format: ext4 wipe_filesystem: false trees: