From 3774c0948ac1216765c15ede8839f52f5fb9e7b9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 3 Jun 2014 12:28:41 +0200 Subject: misc changes Signed-off-by: Florian Pritz --- setup-arch-vm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'setup-arch-vm') 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 -- cgit v1.2.3-24-g4f1b