summaryrefslogtreecommitdiffstats
path: root/setup-arch-vm
diff options
context:
space:
mode:
Diffstat (limited to 'setup-arch-vm')
-rw-r--r--setup-arch-vm6
1 files changed, 2 insertions, 4 deletions
diff --git a/setup-arch-vm b/setup-arch-vm
index db67d09..2dac5b1 100644
--- a/setup-arch-vm
+++ b/setup-arch-vm
@@ -33,8 +33,6 @@ cmdline_arg() {
grep -qE '^flags\s+: .* hypervisor( |$)' /proc/cpuinfo || die "Not running in hypervisor. aborting automatic setup"
-dhcpcd -b eth0
-
# wait for host to be reachable (including dns query)
while ! ping -c1 -W0.3 "$pingcheckhost" >/dev/null; do
sleep 0.2
@@ -127,8 +125,8 @@ arch-chroot /mnt passwd -d $newuser
curl https://git.server-speed.net/users/flo/bin/plain/init_new_user.sh | arch-chroot /mnt sudo -u $newuser bash
arch-chroot /mnt chsh -s /bin/zsh $newuser
-arch-chroot /mnt systemctl enable multi-user.target sshd haveged systemd-networkd
-ln -sf /run/systemd/network/resolv.conf /mnt/etc/resolv.conf
+arch-chroot /mnt systemctl enable multi-user.target sshd haveged systemd-networkd systemd-resolved
+ln -sf /run/systemd/resolve/resolv.conf /mnt/etc/resolv.conf
sync
systemctl reboot