mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-07-17 16:36:26 +00:00
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:
parent
072de4ba94
commit
c5f85d09f3
1 changed files with 4 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue