From c5f85d09f3b5288aa12547c5449220e4d6469830 Mon Sep 17 00:00:00 2001 From: Christian Kotte Date: Sun, 12 Jul 2020 21:56:10 +0200 Subject: [PATCH] Add linux, dhcpcd, and netctl to the base installation The base group was changed to a base meta package and many packages were removed: https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/ Therefore, it's necessary to add linux or linux-lts to install a Kernel. Dhcpcd is needed to get an IP after the first reboot. Netctl is needed later when using Vagrant. --- scripts/install-base.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install-base.sh b/scripts/install-base.sh index 0af70c3..a60f914 100644 --- a/scripts/install-base.sh +++ b/scripts/install-base.sh @@ -44,8 +44,10 @@ echo "==> Mounting ${ROOT_PARTITION} to ${TARGET_DIR}" /usr/bin/mount -o noatime,errors=remount-ro ${ROOT_PARTITION} ${TARGET_DIR} echo '==> Bootstrapping the base installation' -/usr/bin/pacstrap ${TARGET_DIR} base base-devel -/usr/bin/arch-chroot ${TARGET_DIR} pacman -S --noconfirm gptfdisk openssh syslinux +/usr/bin/pacstrap ${TARGET_DIR} base base-devel linux +# Need to install netctl as well: https://github.com/archlinux/arch-boxes/issues/70 +# Can be removed when Vagrant's Arch plugin will use systemd-networkd: https://github.com/hashicorp/vagrant/pull/11400 +/usr/bin/arch-chroot ${TARGET_DIR} pacman -S --noconfirm gptfdisk openssh syslinux dhcpcd netctl /usr/bin/arch-chroot ${TARGET_DIR} syslinux-install_update -i -a -m /usr/bin/sed -i "s|sda3|${ROOT_PARTITION##/dev/}|" "${TARGET_DIR}/boot/syslinux/syslinux.cfg" /usr/bin/sed -i 's/TIMEOUT 50/TIMEOUT 10/' "${TARGET_DIR}/boot/syslinux/syslinux.cfg"