1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:02:07 +02:00
tldr/pages/linux/kexec.md
2017-12-08 11:22:47 +00:00

19 lines
383 B
Markdown

# kexec
> Directly reboot into a new kernel.
- 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`