[pve-devel] applied: [PATCH] fix networking.service ordering

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jan 30 12:56:29 CET 2020


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

I mean what are other services even thinking on depending on
network-online.target and thelike.. -.-

 ...ervice-fix-dependencies-and-ordering.patch | 32 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 debian/patches/pve/0007-networking.service-fix-dependencies-and-ordering.patch

diff --git a/debian/patches/pve/0007-networking.service-fix-dependencies-and-ordering.patch b/debian/patches/pve/0007-networking.service-fix-dependencies-and-ordering.patch
new file mode 100644
index 0000000..8ca4706
--- /dev/null
+++ b/debian/patches/pve/0007-networking.service-fix-dependencies-and-ordering.patch
@@ -0,0 +1,32 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Thomas Lamprecht <t.lamprecht at proxmox.com>
+Date: Thu, 30 Jan 2020 12:48:23 +0100
+Subject: [PATCH] networking.service: fix dependencies and ordering
+
+Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
+---
+ debian/ifupdown2.networking.service | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/debian/ifupdown2.networking.service b/debian/ifupdown2.networking.service
+index b2acd97..ad9bad3 100644
+--- a/debian/ifupdown2.networking.service
++++ b/debian/ifupdown2.networking.service
+@@ -2,8 +2,10 @@
+ Description=Network initialization
+ Documentation=man:interfaces(5) man:ifup(8) man:ifdown(8)
+ DefaultDependencies=no
+-Before=shutdown.target
+ Conflicts=shutdown.target
++Wants=network.target
++After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service systemd-modules-load.service
++Before=network.target shutdown.target network-online.target
+ 
+ [Service]
+ Type=oneshot
+@@ -15,4 +17,4 @@ ExecStop=/sbin/ifdown -a
+ ExecReload=/sbin/ifreload -a
+ 
+ [Install]
+-WantedBy=basic.target network.target shutdown.target
++WantedBy=basic.target network-online.target shutdown.target
diff --git a/debian/patches/series b/debian/patches/series
index 41aafb7..3f39fc8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ pve/0003-allow-vlan-subinterface-in-a-vlan-aware-bridge.patch
 pve/0004-don-t-remove-bridge-is-tap-veth-are-still-plugged.patch
 pve/0005-ifreload-down-up-vxlan-interfaces-when-ifreload_down.patch
 pve/0006-config-tuning.patch
+pve/0007-networking.service-fix-dependencies-and-ordering.patch
-- 
2.20.1





More information about the pve-devel mailing list