mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-28 04:46:27 -04:00
Removed cpu microcode packages, as they rarely are compatible with the host's cpu
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user