2017-12-07 19:53:27 +00:00
|
|
|
# kexec
|
|
|
|
|
|
|
|
> Directly reboot into a new kernel.
|
2021-09-02 15:33:49 -03:00
|
|
|
> More information: <https://manned.org/kexec>.
|
2017-12-07 19:53:27 +00:00
|
|
|
|
|
|
|
- Load a new kernel:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`kexec {{[-l|--load]}} {{path/to/kernel}} --initrd={{path/to/initrd}} --command-line={{arguments}}`
|
2017-12-07 19:53:27 +00:00
|
|
|
|
|
|
|
- Load a new kernel with current boot parameters:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`kexec {{[-l|--load]}} {{path/to/kernel}} --initrd={{path/to/initrd}} --reuse-cmdline`
|
2017-12-07 19:53:27 +00:00
|
|
|
|
|
|
|
- Execute a currently loaded kernel:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`kexec {{[-e|--exec]}}`
|
2017-12-07 19:53:27 +00:00
|
|
|
|
|
|
|
- Unload current kexec target kernel:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`kexec {{[-u|--unload]}}`
|