Skip to main content

Kexec to GRUB (or to Syslinux, or Windows)

I have an application where I need to boot to Linux, execute automated scripts and then automatically boot to Windows. Can I use Kexec to run grub?

Another use case would be to boot a Linux kernel to update the processor microcode, and then kexec to GRUB or Syslinux to boot Windows -- because the microcode won't survive a full reboot.

I've heard of grub4dos (link (unavailable), archived version), but it seems to be discontinued, so is there a way to do it with GRUB2?

I would basically need a loadable image of GRUB for kexec. I tried to load the images found in this explanation, but they don't seem to work. Thanks for any hints.


Note: Found this post from back in 2014, which said that this was not yet implemented in kexec.

rudib
  • 1.8k
  • 1
  • 20
  • 41