From d7b49bfd15d126a6a14501bd571db31ea57633ec Mon Sep 17 00:00:00 2001 From: Gavin Li Date: Tue, 6 Jan 2015 01:38:57 -0800 Subject: [PATCH] generate /etc/resolv.conf from parsed interfaces using systemd-resolved --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 3f6c71a..1449d49 100755 --- a/install.sh +++ b/install.sh @@ -369,6 +369,9 @@ postbootstrap_configuration() { rm /archroot/etc/shadow.new ) + # manage resolv.conf with systemd-resolved + ln -sf ../run/systemd/resolve/resolv.conf /archroot/etc/resolv.conf + # copy interfaces file mkdir -p /archroot/etc/network/ cp /etc/network/interfaces /archroot/etc/network/interfaces @@ -386,6 +389,7 @@ postbootstrap_configuration() { chroot /archroot systemd-machine-id-setup # enable services + chroot /archroot systemctl enable systemd-resolved chroot /archroot systemctl enable systemd-networkd chroot /archroot systemctl enable sshd