Started package installation.
This commit is contained in:
parent
ac76618c2d
commit
5f0c280055
@ -26,6 +26,11 @@ USER="clc"
|
|||||||
PASSWD='$6$xyz$qss5rNcJjj5Efn1tSkCaplTQXVbQlmXkjxOd/FQvZzlKSRg/DUalJkPaoiJZkAS.wDCt9b1eA3CWePHvQDi5T.'
|
PASSWD='$6$xyz$qss5rNcJjj5Efn1tSkCaplTQXVbQlmXkjxOd/FQvZzlKSRg/DUalJkPaoiJZkAS.wDCt9b1eA3CWePHvQDi5T.'
|
||||||
ROOTPASSWD='$6$xyz$gEODDI4x8qnkooLncD8E6cWTgh546DtGoIva9qKqOcon.XA.lBFhq2mvQLlOhA1k9W7.gnTwoMCNlPa6MZt9R.'
|
ROOTPASSWD='$6$xyz$gEODDI4x8qnkooLncD8E6cWTgh546DtGoIva9qKqOcon.XA.lBFhq2mvQLlOhA1k9W7.gnTwoMCNlPa6MZt9R.'
|
||||||
|
|
||||||
|
PACKAGES=(
|
||||||
|
sudo
|
||||||
|
networkmanager
|
||||||
|
)
|
||||||
|
|
||||||
#Echo text with a color passed as the second arguement
|
#Echo text with a color passed as the second arguement
|
||||||
echoc () {
|
echoc () {
|
||||||
echo -e "$2$1${ENDCOLOR}" #Color, Text, Reset color
|
echo -e "$2$1${ENDCOLOR}" #Color, Text, Reset color
|
||||||
@ -118,6 +123,15 @@ sysinstall () {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setup () {
|
||||||
|
|
||||||
|
echoc " - Installing packages." $GREEN
|
||||||
|
|
||||||
|
PKG=${PACKAGES[@]}
|
||||||
|
arch-chroot /mnt pacman -Sy --noconfirm $PKG
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
#Check if root
|
#Check if root
|
||||||
@ -150,6 +164,7 @@ fi
|
|||||||
#sysinstall good
|
#sysinstall good
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
echo "Base system installation complete!"
|
echo "Base system installation complete!"
|
||||||
|
setup
|
||||||
else
|
else
|
||||||
echoc "System installation failed!" $RED
|
echoc "System installation failed!" $RED
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user