[lxc-devel] [lxc-ci/master] Enable systemd-networkd on Ubuntu/Mint cloud images
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Thu Apr 16 15:11:49 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/20200416/89c24525/attachment.bin>
-------------- next part --------------
From 40be03fe3eed2900cd3c2142f1a5baa4b5e517d7 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Thu, 16 Apr 2020 17:04:24 +0200
Subject: [PATCH 1/2] images/mint: Enable systemd-networkd
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
images/mint.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/images/mint.yaml b/images/mint.yaml
index 75b31d4..6a117f8 100644
--- a/images/mint.yaml
+++ b/images/mint.yaml
@@ -407,6 +407,17 @@ actions:
getent group sudo >/dev/null 2>&1 || groupadd --system sudo
useradd --create-home -s /bin/bash -G sudo -U ubuntu
+- trigger: post-packages
+ action: |-
+ #!/bin/sh
+ set -eux
+
+ # Enable systemd-networkd
+ ln -s /lib/systemd/system/systemd-networkd.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service
+ ln -s /lib/systemd/system/systemd-networkd.socket /etc/systemd/system/multi-user.target.wants/systemd-networkd.socket
+variants:
+- cloud
+
- trigger: post-packages
action: |-
#!/bin/sh
From 7c390f04504e65c810ca3867094c6921603b33ef Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Thu, 16 Apr 2020 17:04:34 +0200
Subject: [PATCH 2/2] images/ubuntu: Enable systemd-networkd
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
images/ubuntu.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/images/ubuntu.yaml b/images/ubuntu.yaml
index 69d124c..fa18855 100644
--- a/images/ubuntu.yaml
+++ b/images/ubuntu.yaml
@@ -531,6 +531,17 @@ actions:
getent group sudo >/dev/null 2>&1 || groupadd --system sudo
useradd --create-home -s /bin/bash -G sudo -U ubuntu
+- trigger: post-packages
+ action: |-
+ #!/bin/sh
+ set -eux
+
+ # Enable systemd-networkd
+ ln -s /lib/systemd/system/systemd-networkd.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service
+ ln -s /lib/systemd/system/systemd-networkd.socket /etc/systemd/system/multi-user.target.wants/systemd-networkd.socket
+variants:
+- cloud
+
- trigger: post-packages
action: |-
#!/bin/sh
More information about the lxc-devel
mailing list