Reboot in seconds, not minutes
Switch branches/tags
Clone or download
Failed to load latest commit information.
.gitignore Initial commit Dec 14, 2014
LICENSE Initial commit Dec 14, 2014 update README May 18, 2015
kexec-reboot Fix multiline whitespace matching (ref #4) Apr 3, 2018
kexec-reboot.spec Initial RPM spec file Nov 6, 2017


Easily choose a kernel to kexec


Kexec lets you boot your Linux kernel into another kernel without going through the hardware reset and reinitialization performed by your system BIOS or firmware. Since this process can take several minutes, being able to skip it reduces your downtime.

The problem with kexec is it's an entirely manual process, requiring you to copy and paste the right kernel, initrd and command line arguments, and hope you got everything right.

kexec-reboot aims to automate staging a kernel for kexec, so that you can reboot more quickly and accurately.


kexec-reboot requires the following packages to be installed:

  • kexec-tools 2.0.0 or higher, for /sbin/kexec
  • ruby 1.8.7 or higher

In addition, the system must use grub to boot, as kexec-reboot reads the grub configuration to determine what kernels are available. Both grub 1 and 2 are supported, as well as BIOS and UEFI boot.


kexec-reboot accepts the following command line arguments:

  • -i, --interactive

    Choose the kernel to stage from a list

  • -l, --latest

    Stage the latest kernel

  • -r, --reboot

    Reboot immediately after staging the kernel

  • -v, --[no-]verbose

    Extra verbosity.

After running kexec-reboot, simply reboot your system normally.


  • kexec-reboot -l -r

    Stage the latest kernel for kexec and reboot immediately.

  • kexec-reboot -i

    Show a list of available kernels and select one interactively.