openwrtv4/target/linux/x86/image/grub-iso.cfg
Tomasz Maciej Nowak a822283c7e x86: add amd microcode entries to grub config
Create initrd enries for x86 images, that'll load amd microcode as early
as possible. Also remove the preinit script responsible for late load of
microcode.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
2018-11-26 12:05:45 +01:00

18 lines
322 B
INI

@SERIAL_CONFIG@
@TERMINAL_CONFIG@
set default="0"
set timeout="@TIMEOUT@"
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
fi
}