[lxc-devel] [lxc-ci/master] images: Fix IPV4 on Apertis

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Sep 4 16:48: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/20190904/1ec38aa2/attachment.bin>
-------------- next part --------------
From e9a968a31ea1edb5d815addd72baf020cd83256c Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 4 Sep 2019 18:47:48 +0200
Subject: [PATCH] images: Fix IPV4 on Apertis

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

diff --git a/images/apertis.yaml b/images/apertis.yaml
index a2214d9..9098c95 100644
--- a/images/apertis.yaml
+++ b/images/apertis.yaml
@@ -58,5 +58,19 @@ environment:
     - key: TMPDIR
       set: false
 
+actions:
+ - trigger: post-unpack
+   action: |-
+    #!/bin/sh
+    set -eux
+
+    cat <<-EOF > /etc/systemd/network/eth0.network
+    [Match]
+    Name=eth0
+
+    [Network]
+    DHCP=yes
+    EOF
+
 mappings:
   architecture_map: debian


More information about the lxc-devel mailing list