summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-05-07 06:55:13 +0200
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-05-07 06:55:13 +0200
commita7c15082fcc29f56911e0a36af4133b73e1c9e26 (patch)
treed58631d7e36aa8e15a2e40be530ce4df48f831bc
parent61bd042c67cfd1ebe98a3ff6b7e6a6ce93dffd24 (diff)
downloadarch-boxes32-a7c15082fcc29f56911e0a36af4133b73e1c9e26.tar.xz
added systemd-resolved + rankmirrors
-rw-r--r--http/install-chroot.sh4
-rw-r--r--http/install.sh3
-rw-r--r--provision/postinstall.sh2
3 files changed, 8 insertions, 1 deletions
diff --git a/http/install-chroot.sh b/http/install-chroot.sh
index e779158..af83213 100644
--- a/http/install-chroot.sh
+++ b/http/install-chroot.sh
@@ -37,9 +37,13 @@ Name=eth0
DHCP=ipv4
EOF
+systemctl start systemd-resolved
+ln -sf /var/run/systemd/resolve/resolv.conf /etc/resolv.conf
+
# enabling important services
systemctl enable sshd
systemctl enable systemd-networkd
+systemctl enable systemd-resolved
grub-install "$device"
sed -i -e 's/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=1/' /etc/default/grub
diff --git a/http/install.sh b/http/install.sh
index f1c97cc..9c8007b 100644
--- a/http/install.sh
+++ b/http/install.sh
@@ -25,6 +25,9 @@ mkswap "${device}1"
mkfs.btrfs -L "rootfs" "${device}2"
mount "${device}2" /mnt
+cp /etc/pacman.d/mirrorlist /tmp/mirrorlist.backup
+sed -i 's/^#Server/Server/' /tmp/mirrorlist.backup
+rankmirrors -vn 6 /tmp/mirrorlist.backup > /etc/pacman.d/mirrorlist
pacstrap /mnt base grub openssh sudo
swapon "${device}1"
genfstab -p /mnt >> /mnt/etc/fstab
diff --git a/provision/postinstall.sh b/provision/postinstall.sh
index 9aa2881..245df8d 100644
--- a/provision/postinstall.sh
+++ b/provision/postinstall.sh
@@ -7,5 +7,5 @@ set -x
hostnamectl set-hostname "archlinux"
localectl set-locale "LANG=en_US.UTF-8"
localectl set-keymap "us"
-localectl set-xx1-keymap "us"
+localectl set-x11-keymap "us"
timedatectl set-ntp true