artix

desc
git clone https://git.awy.one/artix.git
Log | Files | Refs | README | LICENSE

commit fc9e7e69cbae7ca7ad767d1d2b0adbc9d1996aca
parent 12aa5c7120ea922c48a3eeb7ce8b4b61f162b42b
Author: awy <awy@awy.one>
Date:   Wed, 30 Oct 2024 03:44:19 +0300

fix

Diffstat:
Minstall.sh | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/install.sh b/install.sh @@ -103,8 +103,10 @@ case $cpuVendorID in MODEL=$(printf '%02x\n' $(lscpu | grep -E '^Model:' | awk '{print $2}')) STEPPING=$(printf '%02x\n' $(lscpu | grep -E '^Stepping:' | awk '{print $2}')) MICROCODE_PATH="intel-ucode/$CPUFAM-$MODEL-$STEPPING" - sed -i "s#CONFIG_EXTRA_FIRMWARE=.*#CONFIG_EXTRA_FIRMWARE=\"$MICROCODE_PATH\"#g" /mnt/usr/src/.config ;; - AuthenticAMD) + THREAD_NUM=$(nproc) + sed -i "s#CONFIG_EXTRA_FIRMWARE=.*#CONFIG_EXTRA_FIRMWARE=\"$MICROCODE_PATH\"#g" /mnt/usr/src/.config + sed -i "s#CONFIG_NR_CPUS=.*#CONFIG_NR_CPUS=$THREAD_NUM#g" /mnt/usr/src/.config ;; + AuthenticAMD) basestrap /mnt amd-ucode ;; *) printf ${red}"Unsupported CPU Vendor. Possibly there is error in detection script.${normal}\n" && exit 1 ;;