Skip to content

Commit 8f7f9e8

Browse files
committed
Add AMD microcode
Signed-off-by: Tommy <[email protected]>
1 parent 5d2863c commit 8f7f9e8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Proxmox-8.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,15 @@ apt update
6262
apt full-upgrade -y
6363
apt autoremove -y
6464

65+
CPU=$(grep vendor_id /proc/cpuinfo)
66+
if [[ "${CPU}" == *"AuthenticAMD"* ]]; then
67+
microcode=amd64-microcode
68+
else
69+
microcode=intel-microcode
70+
fi
71+
6572
# Install packages
66-
apt install -y intel-microcode proxmox-kernel-6.14 systemd-zram-generator tuned
73+
apt install -y "${microcode}" proxmox-kernel-6.14 systemd-zram-generator tuned
6774

6875
### This part assumes that you are using systemd-boot
6976
echo "mitigations=auto,nosmt spectre_v2=on spectre_bhi=on spec_store_bypass_disable=on tsx=off kvm.nx_huge_pages=force nosmt=force l1d_flush=on l1tf=full,force kvm-intel.vmentry_l1d_flush=always spec_rstack_overflow=safe-ret gather_data_sampling=force reg_file_data_sampling=on random.trust_bootloader=off random.trust_cpu=off intel_iommu=on amd_iommu=force_isolation efi=disable_early_pci_dma iommu=force iommu.passthrough=0 iommu.strict=1 slab_nomerge init_on_alloc=1 init_on_free=1 pti=on vsyscall=none ia32_emulation=0 page_alloc.shuffle=1 randomize_kstack_offset=on debugfs=off lockdown=confidentiality module.sig_enforce=1 nomodeset $(cat /etc/kernel/cmdline)" > /etc/kernel/cmdline

0 commit comments

Comments
 (0)