summaryrefslogtreecommitdiff
path: root/units/systemd-nspawn@.service.in
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@users.noreply.github.com>2020-02-24 09:54:35 -0500
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-03-02 19:37:51 +0900
commit3b355677b8cce5217a1a7ed532fbe0e7d0d822d8 (patch)
treea8db7835cbb4667b4a7ef8cfadc28a034d1a2441 /units/systemd-nspawn@.service.in
parented780410339bb77b9adb498ea555b85a1d19ee12 (diff)
downloadsystemd-3b355677b8cce5217a1a7ed532fbe0e7d0d822d8.tar.gz
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
Diffstat (limited to 'units/systemd-nspawn@.service.in')
-rw-r--r--units/systemd-nspawn@.service.in2
1 files changed, 1 insertions, 1 deletions
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)