From: Josef Gajdusek Date: Tue, 6 Jun 2017 15:18:22 +0000 (+0200) Subject: systemd-nspawn@.service: start after /var/lib/machines is mounted (#6079) X-Git-Tag: v234~145 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be5bd2ec62dd7cedd56da82296b9296918806b48;p=thirdparty%2Fsystemd.git 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. --- diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index 8c0685aef50..5e80054a57e 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