[pve-devel] [PATCH container] setup: fedora: fix wrong systemd-networkd preset

Stoiko Ivanov s.ivanov at proxmox.com
Fri Jun 23 19:19:37 CEST 2023


The refactoring of the systemd-preset handling inadvertendly changed
the preset for Fedora >= 37 to disabled

Reported in our community forum:
https://forum.proxmox.com/threads/.129395/

Tested with a Fedora 38 container on PVE 8.0

Fixes: e11806e0de064e6570d40e7c04bc4656687b2c62
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/PVE/LXC/Setup/Fedora.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Setup/Fedora.pm b/src/PVE/LXC/Setup/Fedora.pm
index 80ee85f..1a487c6 100644
--- a/src/PVE/LXC/Setup/Fedora.pm
+++ b/src/PVE/LXC/Setup/Fedora.pm
@@ -39,7 +39,7 @@ sub setup_init {
 	$self->setup_systemd_preset({
 	    # systemd-networkd is disabled by the preset in >=37 in favor of
 	    # NetworkManager, reenable it, since we make use of it.
-	    'systemd-networkd.service' => 0,
+	    'systemd-networkd.service' => 1,
 	});
     }
 }
-- 
2.30.2






More information about the pve-devel mailing list