feature: Added choice to install base-devel

Description:
Adds a section where user can choose if he wants to install the base-devel package or not.
This commit is contained in:
Sparsh Mishra 2021-05-10 12:28:54 +05:30 committed by GitHub
parent acd5e686f5
commit 040c1687e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,6 +146,19 @@ pacstrap /mnt base $kernel $microcode linux-firmware btrfs-progs grub grub-btrfs
network_selector network_selector
# Choice to install base-devel package
echo "base-devel contains helpful tools like gcc, automake, autoconf, sudo and many others."
read -r -p "This will install the base-devel package. Do you agree [y/N]? " bd_response
bd_response=${bd_response,,}
if [[ "$bd_response" =~ ^(yes|y)$ ]]
then
echo "Installing the package.."
pacstrap /mnt base-devel
else
echo "Quitting."
exit
fi
# Generating /etc/fstab. # Generating /etc/fstab.
echo "Generating a new fstab." echo "Generating a new fstab."
genfstab -U /mnt >> /mnt/etc/fstab genfstab -U /mnt >> /mnt/etc/fstab