Removed cpu microcode packages, as they rarely are compatible with the host's cpu

This commit is contained in:
2023-08-24 13:37:05 -04:00
parent 31a509c873
commit 710a41647b
2 changed files with 0 additions and 8 deletions
-6
View File
@@ -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
-2
View File
@@ -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