From 183fd58ddcb4882bb4657bcd07fb775a77220fe1 Mon Sep 17 00:00:00 2001 From: Klaas Demter Date: Fri, 28 Jun 2019 09:38:33 +0200 Subject: [PATCH] Fixes #282 use requiredby to make a hard dependency chain --- container-storage-setup.sh | 2 +- docker-storage-setup.service | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/container-storage-setup.sh b/container-storage-setup.sh index 5ebb45c..b76fce9 100755 --- a/container-storage-setup.sh +++ b/container-storage-setup.sh @@ -1327,7 +1327,7 @@ Type=xfs Options=pquota [Install] -WantedBy=docker-storage-setup.service +RequiredBy=docker-storage-setup.service EOF mv "${unit_file_path}.tmp" "$unit_file_path" systemctl daemon-reload diff --git a/docker-storage-setup.service b/docker-storage-setup.service index 8a70929..439f768 100644 --- a/docker-storage-setup.service +++ b/docker-storage-setup.service @@ -10,3 +10,4 @@ EnvironmentFile=-/etc/sysconfig/docker-storage-setup [Install] WantedBy=multi-user.target +RequiredBy=docker.service