projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc11da
)
systemd-nspawn@.service: start after /var/lib/machines is mounted (#6079)
author
Josef Gajdusek
<atx@atx.name>
Tue, 6 Jun 2017 15:18:22 +0000
(17:18 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 6 Jun 2017 15:18:22 +0000
(11:18 -0400)
This fixes a race condition during boot, where an nspawn container would start
before /var/lib/machines got mounted resulting in a failure.
units/systemd-nspawn@.service.in
patch
|
blob
|
history
diff --git
a/units/systemd-nspawn@.service.in
b/units/systemd-nspawn@.service.in
index 8c0685aef50fef3dd9492f481e8aafc0369b9e07..5e80054a57ee0e98a500190c2984332353d6f670 100644
(file)
--- 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