|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From dd8fe7cf46d372a012d01192949b8ba62887c996 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From: Josef Gajdusek <atx@atx.name>
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Date: Tue, 6 Jun 2017 17:18:22 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Subject: [PATCH] systemd-nspawn@.service: start after /var/lib/machines is
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
mounted (#6079)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
This fixes a race condition during boot, where an nspawn container would start
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
before /var/lib/machines got mounted resulting in a failure.
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
(cherry picked from commit be5bd2ec62dd7cedd56da82296b9296918806b48)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
units/systemd-nspawn@.service.in | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
1 file changed, 1 insertion(+)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
index 8c0685aef5..5e80054a57 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
--- a/units/systemd-nspawn@.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+++ b/units/systemd-nspawn@.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
@@ -11,6 +11,7 @@ Documentation=man:systemd-nspawn(1)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
PartOf=machines.target
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Before=machines.target
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
After=network.target systemd-resolved.service
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+RequiresMountsFor=/var/lib/machines
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
[Service]
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i
|