Change to using pacstrap for base install to avoid issues.

This commit is contained in:
natemaia 2020-04-18 11:26:05 -07:00
parent 516881ae41
commit 26eaf5d858

View File

@ -7,7 +7,7 @@
# shellcheck disable=SC2086,SC2046
VER=2.1.25
VER=2.1.26
# default values {
@ -1448,25 +1448,18 @@ install_packages()
pacman -Qq archlabs-installer > /dev/null 2>&1 && rmpkg+="archlabs-installer "
if [[ $NEWSHELL == 'zsh' ]]; then
inpkg+="zsh-completions "
else
rmpkg+="zsh "
fi
[[ $NEWSHELL == 'zsh' ]] && inpkg+="zsh-completions "
[[ $INSTALL_WMS =~ ($WM_PKG_SES) ]] && inpkg+="$WM_BASE_PKGS "
# update and install crucial packages first to avoid issues
al_repo "$MNT/etc/pacman.conf"
chrun "pacman -Syyu $BASE_PKGS ${LOGIN_PKGS[$LOGIN_TYPE]} $NEWSHELL --noconfirm --needed" 2> "$ERR" 2>&1
errshow 1 "chrun 'pacman -Syyu $BASE_PKGS ${LOGIN_PKGS[$LOGIN_TYPE]} $NEWSHELL --noconfirm --needed'"
chrun "pacman -Syyu --noconfirm" 2> "$ERR" 2>&1
chrun "pacman -S ${LOGIN_PKGS[$LOGIN_TYPE]} $NEWSHELL $UCODE $KERNEL --noconfirm --needed" 2> "$ERR" 2>&1
errshow 1 "chrun 'pacman -S ${LOGIN_PKGS[$LOGIN_TYPE]} $NEWSHELL $UCODE $KERNEL --noconfirm --needed'"
# remove the packages we don't want on the installed system
[[ $rmpkg ]] && chrun "pacman -Rnsc $rmpkg --noconfirm"
# reinstalling iputils fixes the network issue for non-root users
chrun "pacman -S iputils $UCODE $KERNEL --noconfirm"
# install the packages chosen throughout the install
chrun "pacman -S $inpkg --needed --noconfirm" 2> "$ERR" 2>&1
errshow 1 "chrun 'pacman -S $inpkg --needed --noconfirm'"
@ -1647,10 +1640,9 @@ install_mirrorlist()
install_background()
{
(
rsync -a /run/archiso/sfs/airootfs/ "$MNT/" &&
install_mirrorlist "$MNT/etc/pacman.d/mirrorlist" > /tmp/bgout 2>&1 &&
al_repo "$MNT/etc/pacman.conf" &&
chrun "pacman -Syyu $BASE_PKGS --noconfirm --needed" > /tmp/bgout 2>&1
install_mirrorlist "/etc/pacman.d/mirrorlist" > /tmp/bgout 2>&1 &&
pacstrap /mnt $BASE_PKGS > /tmp/bgout 2>&1 &&
al_repo "$MNT/etc/pacman.conf"
) &
BG_PID=$!
# shellcheck disable=SC2064