diff options
author | Kevin P. Fleming <kpfleming@users.noreply.github.com> | 2020-02-24 09:54:35 -0500 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-03-02 19:37:51 +0900 |
commit | 3b355677b8cce5217a1a7ed532fbe0e7d0d822d8 (patch) | |
tree | a8db7835cbb4667b4a7ef8cfadc28a034d1a2441 | |
parent | ed780410339bb77b9adb498ea555b85a1d19ee12 (diff) | |
download | systemd-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
-rw-r--r-- | units/systemd-nspawn@.service.in | 2 |
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) |