[lxc-devel] [lxc-ci/master] images: Override NetworkManager config on Fedora

monstermunchkin on Github lxc-bot at linuxcontainers.org
Mon Sep 16 10:26:55 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 356 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190916/2b695d4c/attachment.bin>
-------------- next part --------------
From 4f12ddf9409658c402d9d435e1891ccf8ba78d49 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Mon, 16 Sep 2019 11:58:06 +0200
Subject: [PATCH] images: Override NetworkManager config on Fedora

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

diff --git a/images/fedora.yaml b/images/fedora.yaml
index 313f09c..26228ff 100644
--- a/images/fedora.yaml
+++ b/images/fedora.yaml
@@ -51,6 +51,17 @@ files:
 
       [Network]
       DHCP=ipv4
+    variants:
+      - default
+
+  - name: override.conf
+    path: /etc/systemd/system/NetworkManager.service.d/override.conf
+    generator: dump
+    content: |-
+      [Service]
+      ExecStartPre=-/usr/sbin/ip link set eth0 down
+    variants:
+      - cloud
 
   - name: meta-data
     generator: cloud-init


More information about the lxc-devel mailing list