kexec

Directly reboot into a new kernel. More information: <https://manned.org/kexec>.

Install

All systems
curl cmd.cat/kexec.sh
Debian Debian
apt-get install kexec-tools
Ubuntu
apt-get install kexec-tools
Arch Arch Linux
pacman -S kexec-tools
image/svg+xml Kali Linux
apt-get install kexec-tools
CentOS
yum install kexec-tools
Fedora
dnf install kexec-tools
Windows (WSL2)
sudo apt-get update sudo apt-get install kexec-tools
Raspbian
apt-get install kexec-tools

Directly reboot into a new kernel. More information: <https://manned.org/kexec>.

  • Load a new kernel:
    kexec -l path/to/kernel --initrd=path/to/initrd --command-line=arguments
  • Load a new kernel with current boot parameters:
    kexec -l path/to/kernel --initrd=path/to/initrd --reuse-cmdline
  • Execute a currently loaded kernel:
    kexec -e
  • Unload current kexec target kernel:
    kexec -u

© tl;dr; authors and contributors