]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
archlinux: Fix resolving 1229/head
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Oct 2016 19:02:56 +0000 (15:02 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Oct 2016 19:02:56 +0000 (15:02 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-archlinux.in

index 9d4326e8c9c15447046d42c46dd313bf3f950be5..c52459d7011dba429f34e95ab45f2610be7b13ad 100644 (file)
@@ -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:]")