2025-03-14 21:59:59 -06:00
|
|
|
# kexec
|
|
|
|
|
|
|
|
|
|
> Directly reboot into a new kernel.
|
|
|
|
|
> More information: <https://manned.org/kexec>.
|
|
|
|
|
|
|
|
|
|
- Load a new kernel:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`kexec {{[-l|--load]}} {{path/to/kernel}} --initrd={{path/to/initrd}} --command-line={{arguments}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Load a new kernel with current boot parameters:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`kexec {{[-l|--load]}} {{path/to/kernel}} --initrd={{path/to/initrd}} --reuse-cmdline`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Execute a currently loaded kernel:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`kexec {{[-e|--exec]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Unload current kexec target kernel:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`kexec {{[-u|--unload]}}`
|