diff options
| author | Blake Romero <blake@blkrom.com> | 2024-08-19 02:19:54 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-08-19 02:19:54 +0100 |
| commit | 6d46cfc29e8156fc7c1ca6b17263f42ba12bf880 (patch) | |
| tree | 45d722a8e17c43dce0cb75063ffe88b6d79d9b2d /install-artix.sh | |
| parent | 9314c97c475e93cbb8321215ddc251ba12eb5099 (diff) | |
Fix installing ucode
Diffstat (limited to 'install-artix.sh')
| -rwxr-xr-x | install-artix.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/install-artix.sh b/install-artix.sh index 7758c95..431a6e2 100755 --- a/install-artix.sh +++ b/install-artix.sh @@ -225,15 +225,9 @@ mount "${boot}" /mnt/boot # Sync packages pacman -Syy -# Get CPU type & install microcode -ucode=amd-ucode -if [[ $(grep "vendor_id" /proc/cpuinfo) == *Intel* ]]; then - ucode=intel-ucode -fi - # Install base packages basestrap /mnt \ - base base-devel booster \ + base base-devel booster artools-base\ dinit seatd-dinit \ turnstile-dinit pambase @@ -241,9 +235,16 @@ basestrap /mnt \ basestrap /mnt \ linux linux-firmware \ grub efibootmgr os-prober \ - btrfs-progs "${ucode}" \ + btrfs-progs \ git vim man-{db,pages} +# Get CPU type for microcode +ucode=amd-ucode +if [[ $(grep "vendor_id" /proc/cpuinfo) == *Intel* ]]; then + ucode=intel-ucode +fi +basestrap /mnt "${ucode}" --overwrite "/mnt/boot/${ucode}.img" + # Install crypt service if [[ "${encrypt}" == true ]]; then basestrap /mnt cryptsetup-dinit |
