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"