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

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Dec 15 13:07:15 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/47b3b21f/attachment.bin>
-------------- next part --------------
From 226f9bc51f1886a3f87f46ea0f8518f38a41831b Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 15 Dec 2020 14:06:49 +0100
Subject: [PATCH] images/centos: Fix CentOS 8-Stream networking

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

diff --git a/images/centos.yaml b/images/centos.yaml
index 21bd1aa..6cedf9b 100644
--- a/images/centos.yaml
+++ b/images/centos.yaml
@@ -399,6 +399,18 @@ files:
   - 8
   - 8-Stream
 
+- name: override.conf
+  path: /etc/systemd/system/NetworkManager.service.d/override.conf
+  generator: dump
+  content: |-
+    [Service]
+    ExecStartPost=/usr/sbin/dhclient
+
+  types:
+  - container
+  releases:
+  - 8-Stream
+
 - name: network
   path: /etc/sysconfig/network
   generator: dump


More information about the lxc-devel mailing list