diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-06-03 12:28:41 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-06-03 12:28:41 +0200 |
commit | 3774c0948ac1216765c15ede8839f52f5fb9e7b9 (patch) | |
tree | 4b1d16df352b36cf141c8731baa37cfa3cf4b142 /setup-arch-vm | |
parent | 7fba334e4fe21133141125ac77185ab9a0b22f2c (diff) | |
download | bin-3774c0948ac1216765c15ede8839f52f5fb9e7b9.tar.gz bin-3774c0948ac1216765c15ede8839f52f5fb9e7b9.tar.xz |
misc changes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'setup-arch-vm')
-rw-r--r-- | setup-arch-vm | 5 |
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 |