summaryrefslogtreecommitdiffstats
path: root/setup-arch-vm
diff options
context:
space:
mode:
Diffstat (limited to 'setup-arch-vm')
-rw-r--r--setup-arch-vm5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup-arch-vm b/setup-arch-vm
index e6a19f6..db67d09 100644
--- a/setup-arch-vm
+++ b/setup-arch-vm
@@ -33,6 +33,8 @@ 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
@@ -62,8 +64,6 @@ Name=e*
$(get_url "http://$server/network/$hostname")
EOF
-ln -sf /run/systemd/network/resolv.conf /mnt/etc/resolv.conf
-
ln -s /usr/share/zoneinfo/Europe/Vienna /mnt/etc/localtime
echo "en_US.UTF-8 UTF-8" > /mnt/etc/locale.gen
arch-chroot /mnt locale-gen
@@ -128,6 +128,7 @@ curl https://git.server-speed.net/users/flo/bin/plain/init_new_user.sh | arch-ch
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
sync
systemctl reboot