1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

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.
This commit is contained in:
Josef Gajdusek 2017-06-06 17:18:22 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent fbc11da3b1
commit be5bd2ec62

View File

@ -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