[lxc-devel] [lxc/master] archlinux: Fix resolving

stgraber on Github lxc-bot at linuxcontainers.org
Thu Oct 13 19:03:15 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161013/0bb950d0/attachment.bin>
-------------- next part --------------
From 137162e84759b9e172ff8e563170bd4f274ff3a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 13 Oct 2016 15:02:56 -0400
Subject: [PATCH] archlinux: Fix resolving
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 templates/lxc-archlinux.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/lxc-archlinux.in b/templates/lxc-archlinux.in
index 9d4326e..c52459d 100644
--- a/templates/lxc-archlinux.in
+++ b/templates/lxc-archlinux.in
@@ -122,6 +122,8 @@ pacman-key --populate archlinux
 
 # enable networkd
 systemctl enable systemd-networkd
+systemctl enable systemd-resolved
+ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
 EOF
     # enable getty on active ttys
     local nttys=$(cat "${config_path}/config" ${shared_config} ${common_config} | grep "^lxc.tty" | head -n1 | cut -d= -f2 | tr -d "[:blank:]")


More information about the lxc-devel mailing list