[lxc-devel] [lxc-ci/master] images/apertis: Enable systemd-{network, resolve}d

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Apr 1 16:24:33 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/20200401/d2093df2/attachment.bin>
-------------- next part --------------
From c8bc6bf5d215f50c6a90e28c1bc27d9abd5a12d5 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 1 Apr 2020 18:23:06 +0200
Subject: [PATCH] images/apertis: Enable systemd-{network,resolve}d

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

diff --git a/images/apertis.yaml b/images/apertis.yaml
index 0486463..476decb 100644
--- a/images/apertis.yaml
+++ b/images/apertis.yaml
@@ -78,6 +78,10 @@ actions:
     rm /etc/resolv.conf
     ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
 
+    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
+    ln -s /lib/systemd/system/systemd-resolved.service /etc/systemd/system/multi-user.target.wants/systemd-resolved.service
+
 environment:
   variables:
   - key: TMPDIR


More information about the lxc-devel mailing list