Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/install-chroot.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/http/install-chroot.sh b/http/install-chroot.sh
index 392e24f..8b5bdec 100644
--- a/http/install-chroot.sh
+++ b/http/install-chroot.sh
@@ -4,12 +4,8 @@ set -e
set -x
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
-hostnamectl set-hostname "archlinux"
sed -i -e 's/^#\(en_US.UTF-8\)/\1/' /etc/locale.gen
locale-gen
-localectl set-locale "LANG=en_US.UTF-8"
-localectl set-keymap "us"
-localectl set-xx1-keymap "us"
# setting vagrant user credentials
echo -e 'vagrant\nvagrant' | passwd
@@ -29,6 +25,17 @@ curl --output /home/vagrant/.ssh/authorized_keys --location https://raw.github.c
chown vagrant:vagrant /home/vagrant/.ssh/authorized_keys
chmod 0600 /home/vagrant/.ssh/authorized_keys
+# setup unpredictable kernel names
+ln -s /dev/null /etc/systemd/network/99-default.link
+
+cat <<EOF > /etc/systemd/networkd/eth0.network
+[Match]
+Name=eth0
+
+[Network]
+DHCP=ipv4
+EOF
+
# enabling important services
systemctl enable sshd
systemctl enable systemd-networkd