From: Kevin P. Fleming Date: Mon, 24 Feb 2020 14:54:35 +0000 (-0500) Subject: RequireMountsFor in systemd-nspawn should wait for machine mount X-Git-Tag: v245-rc2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b355677b8cce5217a1a7ed532fbe0e7d0d822d8;p=thirdparty%2Fsystemd.git 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 --- diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index 51634472ac3..c91c92707e0 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)