Fixing persistent storage filesystem/mount.

main
Thomas Hintz 2 weeks ago
parent 967a8e8028
commit 00192edbb3

@ -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:

Loading…
Cancel
Save