1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 21:17:57 +01:00
tldr/pages/linux/kexec.md
2021-09-02 20:33:49 +02:00

431 B

kexec

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