add patch to reload after first install

when installing for the first time we want to reload the network config,
since sometimes the network will not be configured, e.g. when
coming from ifupdown. this would break installing ifupdown2 over
the network (e.g. ssh)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-07-06 13:42:02 +02:00 committed by Thomas Lamprecht
parent f4a6c643b8
commit 86335f3f89
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Dominik Csapak <d.csapak@proxmox.com>
Date: Tue, 6 Jul 2021 13:11:24 +0200
Subject: [PATCH] postinst: reload network config on first install
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
debian/ifupdown2.postinst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debian/ifupdown2.postinst b/debian/ifupdown2.postinst
index b7de485..eaade7c 100644
--- a/debian/ifupdown2.postinst
+++ b/debian/ifupdown2.postinst
@@ -113,6 +113,8 @@ case "$1" in
postinst_remove_diverts
if [ -f "/tmp/.ifupdown2-first-install" ]; then
proxmox_compatibility
+ echo "Reloading network config on first install"
+ ifreload -a
rm /tmp/.ifupdown2-first-install
fi
;;
--
2.30.2

View File

@ -10,3 +10,4 @@ pve/0009-allow-vlan-tag-inside-vxlan-tunnel.patch
pve/0010-postinst-rm-update-network-config-compatibility.patch
pve/0011-d-rules-drop-now-default-with-systemd.patch
pve/0012-d-rules-add-dh_installsystemd-override-for-compat-12.patch
pve/0013-postinst-reload-network-config-on-first-install.patch