Skip to content
Permalink
Browse files

Revert "x86: add amd microcode entries to grub config"

This reverts commit a822283.

Signed-off-by: John Crispin <john@phrozen.org>
  • Loading branch information...
blogic committed Nov 27, 2018
1 parent 30f30d3 commit 8ead5a735df6b999c8853f0bdad81164b1a0917b
@@ -0,0 +1,12 @@
#!/bin/sh
# Copyright (C) 2018 OpenWrt.org

do_load_x86_ucode() {
if grep -q AuthenticAMD /proc/cpuinfo; then
if [ -e "/sys/devices/system/cpu/microcode/reload" ]; then
echo 1 > /sys/devices/system/cpu/microcode/reload
fi
fi
}

boot_hook_add preinit_main do_load_x86_ucode
@@ -7,12 +7,7 @@ set root='(cd)'

menuentry "@TITLE@" {
linux /boot/vmlinuz @CMDLINE@ noinitrd
set amd="/boot/amd-ucode.img"
set intel="/boot/intel-ucode.img"
if [ -s "$amd" ]; then
initrd $amd $intel
fi
if [ -s "$intel" ]; then
initrd $intel $amd
if [ -s /boot/intel-ucode.img ]; then
initrd /boot/intel-ucode.img
fi
}
@@ -7,13 +7,8 @@ set root='(@ROOT@)'

menuentry "@TITLE@" {
linux /boot/vmlinuz @CMDLINE@ noinitrd
set amd="/boot/amd-ucode.img"
set intel="/boot/intel-ucode.img"
if [ -s "$amd" ]; then
initrd $amd $intel
fi
if [ -s "$intel" ]; then
initrd $intel $amd
if [ -s /boot/intel-ucode.img ]; then
initrd /boot/intel-ucode.img
fi
}
menuentry "@TITLE@ (failsafe)" {

0 comments on commit 8ead5a7

Please sign in to comment.
You can’t perform that action at this time.