From 5f0c280055e95d072eb23a4793bfe8da1a000e01 Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Wed, 30 Jun 2021 15:58:17 -0400 Subject: [PATCH] Started package installation. --- archinstall.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/archinstall.sh b/archinstall.sh index f17bfdb..9d5caf5 100755 --- a/archinstall.sh +++ b/archinstall.sh @@ -26,6 +26,11 @@ USER="clc" PASSWD='$6$xyz$qss5rNcJjj5Efn1tSkCaplTQXVbQlmXkjxOd/FQvZzlKSRg/DUalJkPaoiJZkAS.wDCt9b1eA3CWePHvQDi5T.' ROOTPASSWD='$6$xyz$gEODDI4x8qnkooLncD8E6cWTgh546DtGoIva9qKqOcon.XA.lBFhq2mvQLlOhA1k9W7.gnTwoMCNlPa6MZt9R.' +PACKAGES=( + sudo + networkmanager +) + #Echo text with a color passed as the second arguement echoc () { echo -e "$2$1${ENDCOLOR}" #Color, Text, Reset color @@ -92,7 +97,7 @@ sysinstall () { reflector --protocol https --sort rate --country 'United States' --save /etc/pacman.d/mirrorlist --verbose echoc " - Installing system." $GREEN - pacstrap /mnt base linux linux-firmware nano + pacstrap /mnt base linux linux-firmware nano echoc " - Installing bootloader." $GREEN arch-chroot /mnt pacman -Sy --noconfirm grub efibootmgr os-prober @@ -118,6 +123,15 @@ sysinstall () { return 1 } +setup () { + + echoc " - Installing packages." $GREEN + + PKG=${PACKAGES[@]} + arch-chroot /mnt pacman -Sy --noconfirm $PKG + +} + ###################################################################################### #Check if root @@ -150,6 +164,7 @@ fi #sysinstall good if [ $? -eq 1 ]; then echo "Base system installation complete!" + setup else echoc "System installation failed!" $RED fi \ No newline at end of file