all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Ethan Zuo <yuxuan.zuo@outlook.com>
To: pve-devel@lists.proxmox.com
Cc: Ethan Zuo <yuxuan.zuo@outlook.com>
Subject: [PATCH container 2/2] d/postinst: reset iptables/ebtables alternatives to auto
Date: Thu, 12 Feb 2026 04:16:42 +0800	[thread overview]
Message-ID: <SY0P300MB0609584B5FD4401BD5BE4C239C63A@SY0P300MB0609.AUSP300.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <SY0P300MB06098F4400B1D066ABA676409C63A@SY0P300MB0609.AUSP300.PROD.OUTLOOK.COM>

Following commit 67e3e322a881 ("Revert "pve-firewall.service:
update-alternative ip-/eb- tables to legacy versions""), modify the
postinst script to explicitly switch these alternatives back to auto
mode during package configuration. This ensures a seamless transition
during upgrades.

Signed-off-by: Ethan Zuo <yuxuan.zuo@outlook.com>
---
 debian/postinst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/postinst b/debian/postinst
index 8cdb468..8d6a14f 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,6 +6,10 @@ set -e
 
 case "$1" in
     configure)
+	update-alternatives --auto ebtables || true
+	update-alternatives --auto iptables || true
+	update-alternatives --auto ip6tables || true
+
 	# modeled after dh_systemd_start output
 	systemctl --system daemon-reload >/dev/null || true
 	if [ -n "$2" ]; then
-- 
2.51.0




      parent reply	other threads:[~2026-02-12  7:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-11 20:16 [PATCH pve-firewall 0/2] switch iptables/ebtables alternatives back to nft-based versions Ethan Zuo
2026-02-11 20:16 ` [PATCH container 1/2] Revert "pve-firewall.service: update-alternative ip-/eb- tables to legacy versions" Ethan Zuo
2026-02-11 20:16 ` Ethan Zuo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SY0P300MB0609584B5FD4401BD5BE4C239C63A@SY0P300MB0609.AUSP300.PROD.OUTLOOK.COM \
    --to=yuxuan.zuo@outlook.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal