From 710a41647b0d7969f926aa7f9326b9200b3983e3 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 24 Aug 2023 13:37:05 -0400 Subject: [PATCH] Removed cpu microcode packages, as they rarely are compatible with the host's cpu --- chrootInstall.sh | 6 ------ install.sh | 2 -- 2 files changed, 8 deletions(-) diff --git a/chrootInstall.sh b/chrootInstall.sh index 39d4c7c..db6338a 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -2,7 +2,6 @@ # Importing Variables formfactor="$(< /tempfiles/formfactor)" -cpu="$(< /tempfiles/cpu)" threadsminusone="$(< /tempfiles/threadsminusone)" gpu="$(< /tempfiles/gpu)" intel_vaapi_driver="$(< /tempfiles/intel_vaapi_driver)" @@ -84,11 +83,6 @@ ln -sfT dash /usr/bin/sh pacman -Sy zsh zsh-autosuggestions zsh-syntax-highlighting openrc-zsh-completions --noconfirm # installing hardware-specific packages -if [ "$cpu" == 'AuthenticAMD' ]; then - pacman -S amd-ucode --noconfirm -else - pacman -S intel-ucode --noconfirm -fi if [ "$gpu" == 'AMD' ]; then pacman -S mesa vulkan-icd-loader vulkan-radeon libva-mesa-driver libva-utils --needed --noconfirm elif [ "$gpu" == 'Intel' ]; then diff --git a/install.sh b/install.sh index 4c2fc39..613f6f5 100755 --- a/install.sh +++ b/install.sh @@ -35,7 +35,6 @@ read -r -p "timezone: " timezone # start hardware detection pacman -Sy bc --noconfirm -cpu=$(lscpu | grep 'Vendor ID:' | awk 'FNR == 1 {print $3;}') threadsminusone=$(echo "$(lscpu | grep 'CPU(s):' | awk 'FNR == 1 {print $2;}') - 1" | bc) gpu=$(lspci | grep 'VGA compatible controller:' | awk 'FNR == 1 {print $5;}') if ! ([ "$gpu" == 'NVIDIA' ] || [ "$gpu" == 'Intel' ]); then @@ -178,7 +177,6 @@ done # exporting variables mkdir /mnt/tempfiles echo "$formfactor" > /mnt/tempfiles/formfactor -echo "$cpu" > /mnt/tempfiles/cpu echo "$threadsminusone" > /mnt/tempfiles/threadsminusone echo "$gpu" > /mnt/tempfiles/gpu echo "$intel_vaapi_driver" > /mnt/tempfiles/intel_vaapi_driver