From: Filip Schauer <f.schauer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH container] fix #7487: setup/suse: setup systemd-networkd if present
Date: Wed, 15 Apr 2026 11:44:45 +0200 [thread overview]
Message-ID: <20260415094503.51113-1-f.schauer@proxmox.com> (raw)
Wicked is being phased out as the default network manager on SUSE. The
LXC template for openSUSE Leap 16 now uses systemd-networkd.
Detect if systemd-networkd is installed and configure it accordingly.
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
---
src/PVE/LXC/Setup/SUSE.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PVE/LXC/Setup/SUSE.pm b/src/PVE/LXC/Setup/SUSE.pm
index f217f97..dfe1798 100644
--- a/src/PVE/LXC/Setup/SUSE.pm
+++ b/src/PVE/LXC/Setup/SUSE.pm
@@ -147,6 +147,9 @@ sub setup_network {
# To keep user-defined routes in route-$iface we mark ours:
$self->ct_modify_file($routefile, $routes, delete => 1, prepend => 1);
}
+
+ $self->setup_systemd_networkd($conf)
+ if $self->ct_file_exists("/usr/lib/systemd/systemd-networkd");
}
1;
--
2.47.3
reply other threads:[~2026-04-15 9:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260415094503.51113-1-f.schauer@proxmox.com \
--to=f.schauer@proxmox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox