summaryrefslogtreecommitdiff
path: root/units/systemd-nspawn@.service.in
diff options
context:
space:
mode:
authorJosef Gajdusek <atx@atx.name>2017-06-06 17:18:22 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-06-06 11:18:22 -0400
commitbe5bd2ec62dd7cedd56da82296b9296918806b48 (patch)
treeafa2aa5e0b8351ad26eec9d09f1067b2a60a8edb /units/systemd-nspawn@.service.in
parentfbc11da3b1c676072100cc9db09b41e8167871a4 (diff)
downloadsystemd-be5bd2ec62dd7cedd56da82296b9296918806b48.tar.gz
systemd-nspawn@.service: start after /var/lib/machines is mounted (#6079)
This fixes a race condition during boot, where an nspawn container would start before /var/lib/machines got mounted resulting in a failure.
Diffstat (limited to 'units/systemd-nspawn@.service.in')
-rw-r--r--units/systemd-nspawn@.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in
index 8c0685aef5..5e80054a57 100644
--- a/units/systemd-nspawn@.service.in
+++ b/units/systemd-nspawn@.service.in
@@ -11,6 +11,7 @@ Documentation=man:systemd-nspawn(1)
PartOf=machines.target
Before=machines.target
After=network.target systemd-resolved.service
+RequiresMountsFor=/var/lib/machines
[Service]
ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i