From b2630501891f184754ae944bdf5349ede48618da Mon Sep 17 00:00:00 2001 From: Silvio Knizek Date: Mon, 3 Jun 2024 09:20:44 +0200 Subject: [PATCH] create necessary structures for custom volume mounts Fixes: #5 --- mkosi.extra.d/generic/etc/tmpfiles.d/00-docker-compat.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 mkosi.extra.d/generic/etc/tmpfiles.d/00-docker-compat.conf diff --git a/mkosi.extra.d/generic/etc/tmpfiles.d/00-docker-compat.conf b/mkosi.extra.d/generic/etc/tmpfiles.d/00-docker-compat.conf new file mode 100644 index 0000000..2e4d3e8 --- /dev/null +++ b/mkosi.extra.d/generic/etc/tmpfiles.d/00-docker-compat.conf @@ -0,0 +1,6 @@ +# this files are necessary for the custom mount points +# normally, docker would create them during volume creation, but as the volumes are custom mount points, we have to create the internals by ourself +d /var/lib/docker/volumes/kolla_logs 0701 root root - - +d /var/lib/docker/volumes/mariadb 0701 root root - - +d /var/lib/docker/volumes/kolla_logs/_data 2775 root root - - +d /var/lib/docker/volumes/mariadb/_data 2775 42434 42434 - - \ No newline at end of file