]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
RequireMountsFor in systemd-nspawn should wait for machine mount
authorKevin P. Fleming <kpfleming@users.noreply.github.com>
Mon, 24 Feb 2020 14:54:35 +0000 (09:54 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Mar 2020 10:37:51 +0000 (19:37 +0900)
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

index 51634472ac35c4dfff6ced1ae531b7706898b3f0..c91c92707e060826c9e3fa5ed751de6a4fe248ff 100644 (file)
@@ -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)