From 3b355677b8cce5217a1a7ed532fbe0e7d0d822d8 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 24 Feb 2020 09:54:35 -0500 Subject: RequireMountsFor in systemd-nspawn should wait for machine mount This patch modifies the RequireMountsFor setting in systemd-nspawn@.service to wait for the machine instance directory to be mounted, not just /var/lib/machines. Closes #14931 --- units/systemd-nspawn@.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'units/systemd-nspawn@.service.in') diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index 51634472ac..c91c92707e 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -14,7 +14,7 @@ Wants=modprobe@tun.service modprobe@loop.service modprobe@dm-mod.service PartOf=machines.target Before=machines.target After=network.target systemd-resolved.service modprobe@tun.service modprobe@loop.service modprobe@dm-mod.service -RequiresMountsFor=/var/lib/machines +RequiresMountsFor=/var/lib/machines/%i [Service] # Make sure the DeviceAllow= lines below can properly resolve the 'block-loop' expression (and others) -- cgit v1.2.1