[lxc-devel] [lxc-ci/master] images/centos: Fix CentOS 8-Stream networking issue

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Dec 15 14:53:19 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 303 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201215/9945e749/attachment.bin>
-------------- next part --------------
From bb0024cd9b81d3ecb81d51cf8fa1786e4378ffd9 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 15 Dec 2020 15:52:35 +0100
Subject: [PATCH] images/centos: Fix CentOS 8-Stream networking issue

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 images/centos.yaml | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/images/centos.yaml b/images/centos.yaml
index 6cedf9b..4346144 100644
--- a/images/centos.yaml
+++ b/images/centos.yaml
@@ -399,15 +399,11 @@ files:
   - 8
   - 8-Stream
 
-- name: override.conf
-  path: /etc/systemd/system/NetworkManager.service.d/override.conf
+- name: 86-nm-unmanaged.rules
+  path: /usr/lib/udev/rules.d/86-nm-unmanaged.rules
   generator: dump
   content: |-
-    [Service]
-    ExecStartPost=/usr/sbin/dhclient
-
-  types:
-  - container
+    ENV{ID_NET_DRIVER}=="veth", ENV{NM_UNMANAGED}="0"
   releases:
   - 8-Stream
 


More information about the lxc-devel mailing list