2017-12-07 19:53:27 +00:00
|
|
|
# kexec
|
|
|
|
|
|
|
|
> Directly reboot into a new kernel.
|
|
|
|
|
|
|
|
- Load a new kernel:
|
|
|
|
|
2017-12-08 11:22:47 +00:00
|
|
|
`kexec -l {{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:
|
|
|
|
|
2017-12-08 11:22:47 +00:00
|
|
|
`kexec -l {{path/to/kernel}} --initrd={{path/to/initrd}} --reuse-cmdline`
|
2017-12-07 19:53:27 +00:00
|
|
|
|
|
|
|
- Execute a currently loaded kernel:
|
|
|
|
|
|
|
|
`kexec -e`
|
|
|
|
|
|
|
|
- Unload current kexec target kernel:
|
|
|
|
|
|
|
|
`kexec -u`
|