mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-05 16:37:17 -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
|
# Importing Variables
|
||||||
formfactor="$(< /tempfiles/formfactor)"
|
formfactor="$(< /tempfiles/formfactor)"
|
||||||
cpu="$(< /tempfiles/cpu)"
|
|
||||||
threadsminusone="$(< /tempfiles/threadsminusone)"
|
threadsminusone="$(< /tempfiles/threadsminusone)"
|
||||||
gpu="$(< /tempfiles/gpu)"
|
gpu="$(< /tempfiles/gpu)"
|
||||||
intel_vaapi_driver="$(< /tempfiles/intel_vaapi_driver)"
|
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
|
pacman -Sy zsh zsh-autosuggestions zsh-syntax-highlighting openrc-zsh-completions --noconfirm
|
||||||
|
|
||||||
# installing hardware-specific packages
|
# installing hardware-specific packages
|
||||||
if [ "$cpu" == 'AuthenticAMD' ]; then
|
|
||||||
pacman -S amd-ucode --noconfirm
|
|
||||||
else
|
|
||||||
pacman -S intel-ucode --noconfirm
|
|
||||||
fi
|
|
||||||
if [ "$gpu" == 'AMD' ]; then
|
if [ "$gpu" == 'AMD' ]; then
|
||||||
pacman -S mesa vulkan-icd-loader vulkan-radeon libva-mesa-driver libva-utils --needed --noconfirm
|
pacman -S mesa vulkan-icd-loader vulkan-radeon libva-mesa-driver libva-utils --needed --noconfirm
|
||||||
elif [ "$gpu" == 'Intel' ]; then
|
elif [ "$gpu" == 'Intel' ]; then
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ read -r -p "timezone: " timezone
|
|||||||
|
|
||||||
# start hardware detection
|
# start hardware detection
|
||||||
pacman -Sy bc --noconfirm
|
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)
|
threadsminusone=$(echo "$(lscpu | grep 'CPU(s):' | awk 'FNR == 1 {print $2;}') - 1" | bc)
|
||||||
gpu=$(lspci | grep 'VGA compatible controller:' | awk 'FNR == 1 {print $5;}')
|
gpu=$(lspci | grep 'VGA compatible controller:' | awk 'FNR == 1 {print $5;}')
|
||||||
if ! ([ "$gpu" == 'NVIDIA' ] || [ "$gpu" == 'Intel' ]); then
|
if ! ([ "$gpu" == 'NVIDIA' ] || [ "$gpu" == 'Intel' ]); then
|
||||||
@@ -178,7 +177,6 @@ done
|
|||||||
# exporting variables
|
# exporting variables
|
||||||
mkdir /mnt/tempfiles
|
mkdir /mnt/tempfiles
|
||||||
echo "$formfactor" > /mnt/tempfiles/formfactor
|
echo "$formfactor" > /mnt/tempfiles/formfactor
|
||||||
echo "$cpu" > /mnt/tempfiles/cpu
|
|
||||||
echo "$threadsminusone" > /mnt/tempfiles/threadsminusone
|
echo "$threadsminusone" > /mnt/tempfiles/threadsminusone
|
||||||
echo "$gpu" > /mnt/tempfiles/gpu
|
echo "$gpu" > /mnt/tempfiles/gpu
|
||||||
echo "$intel_vaapi_driver" > /mnt/tempfiles/intel_vaapi_driver
|
echo "$intel_vaapi_driver" > /mnt/tempfiles/intel_vaapi_driver
|
||||||
|
|||||||
Reference in New Issue
Block a user