Skip to content
Snippets Groups Projects
Unverified Commit a7c15082 authored by Christian Rebischke's avatar Christian Rebischke
Browse files

added systemd-resolved + rankmirrors

parent 61bd042c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment