From 41c0f5d4afce2f79f1b2d7ff72cddd7b3de99e01 Mon Sep 17 00:00:00 2001 From: Davide Principi Date: Thu, 24 Oct 2024 08:59:57 +0200 Subject: [PATCH] Fix SELinux context of data volume Add the "shared" flag to the volume definition. --- imageroot/systemd/user/minio.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageroot/systemd/user/minio.service b/imageroot/systemd/user/minio.service index c6f1d87..61abbd8 100644 --- a/imageroot/systemd/user/minio.service +++ b/imageroot/systemd/user/minio.service @@ -18,7 +18,7 @@ ExecStart=/usr/bin/podman run \ --env=MINIO_ROOT_USER=${MINIO_ROOT_USER} \ --env=MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD} \ --env=MINIO_DOMAIN=${MINIO_HOST_SERVER} \ - --volume=${MINIO_STORAGE}:/data \ + --volume=${MINIO_STORAGE}:/data:z \ ${MINIO_IMAGE} server /data --console-address ":9001" ExecStop=/usr/bin/podman stop --ignore --cidfile %t/minio.ctr-id -t 10 ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/minio.ctr-id