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.
This commit is contained in:
Christian Kotte 2020-07-12 21:56:10 +02:00 committed by Aaron Bull Schaefer
parent 072de4ba94
commit c5f85d09f3

View file

@ -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"