[lxc-devel] [lxc-ci/master] images: Fix cloud-init for openSUSE Leap

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Sep 11 06:23:41 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/20190910/31d6c2e3/attachment.bin>
-------------- next part --------------
From de25d20203b262c9b1d8b0e20f5db18ee2e39deb Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 11 Sep 2019 08:04:38 +0200
Subject: [PATCH] images: Fix cloud-init for openSUSE Leap

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

diff --git a/images/opensuse.yaml b/images/opensuse.yaml
index bf48b92..3e5cf1c 100644
--- a/images/opensuse.yaml
+++ b/images/opensuse.yaml
@@ -143,6 +143,19 @@ actions:
    variants:
      - cloud
 
+ - trigger: post-packages
+   action: |-
+     #!/bin/sh
+     set -eux
+
+     # Have the sysconfig network renderer support openSUSE Leap
+     sed -i "s|'opensuse'|'opensuse-leap'|" $(find /usr -wholename '*/cloudinit/net/sysconfig.py')
+   releases:
+     - 15.0
+     - 15.1
+   variants:
+     - cloud
+
  - trigger: post-packages
    action: |-
      #!/bin/sh


More information about the lxc-devel mailing list