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

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Sep 10 20:57: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/4c198ce7/attachment.bin>
-------------- next part --------------
From a129e6ab7bb70ca99be621996256d5fab33b9615 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 10 Sep 2019 22:52:19 +0200
Subject: [PATCH] images: Fix cloud-init on openSUSE

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

diff --git a/images/opensuse.yaml b/images/opensuse.yaml
index 91069c6..bf48b92 100644
--- a/images/opensuse.yaml
+++ b/images/opensuse.yaml
@@ -129,3 +129,26 @@ packages:
       action: install
       variants:
        - cloud
+
+actions:
+ - trigger: post-packages
+   action: |-
+     #!/bin/sh
+     set -eux
+
+     # Have the sysconfig network renderer support openSUSE Tumbleweed
+     sed -i "s|'opensuse'|'opensuse-tumbleweed'|" $(find /usr -wholename '*/cloudinit/net/sysconfig.py')
+   releases:
+     - tumbleweed
+   variants:
+     - cloud
+
+ - trigger: post-packages
+   action: |-
+     #!/bin/sh
+     set -eux
+
+     # Enable the cloud-init systemd service
+     systemctl enable cloud-init.service
+   variants:
+     - cloud


More information about the lxc-devel mailing list