From 7b0cb1d55ed77c2dca674e217aa4491f085e7122 Mon Sep 17 00:00:00 2001 From: natemaia Date: Sun, 14 Jun 2020 09:49:03 -0700 Subject: [PATCH] Remove microcode from boot before trying to install --- installer | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installer b/installer index 875de31..99f93f1 100755 --- a/installer +++ b/installer @@ -6,7 +6,7 @@ # AIF, Calamares, and the Arch Wiki.. Credit where credit is due # shellcheck disable=SC2086,SC2046,SC2254,SC2164 -VER=2.1.55 +VER=2.1.56 # default values { @@ -774,7 +774,7 @@ select_mirrors() c="${COUNTRIES[$i]}" fi done - yesno "Mirror Countries" "\nConfirm the following countries: $c" && break + yesno "Mirror Countries" "\nConfirm the following countries: $c\n" && break done for i in $codes; do @@ -2046,6 +2046,8 @@ install_packages() # remove the packages we don't want on the installed system [[ ${rmpkg[*]} ]] && chrun "pacman -Rnsc ${rmpkg[*]} --noconfirm" + + [[ -e $MNT/boot/${UCODE}.img ]] && rm -rf "$MNT/boot/${UCODE}.img" # install crucial packages first to avoid issues, reinstalling iputils fixes network issues for non-root users chrun "pacman -S $KERNEL $UCODE iputils --noconfirm" 2> "$ERR" 2>&1