Skip to main content

load_dry

Function load_dry 

Source
pub fn load_dry(req: &KexecRequest) -> Result<(), KexecError>
Expand description

Load the requested kernel via kexec_file_load(2) without triggering the subsequent reboot.

On success the image is staged in kernel memory and /sys/kernel/kexec_loaded flips to 1. Callers that want to actually hand off to the loaded kernel should use load_and_exec; this entry point exists so integration tests can verify the syscall path against a real kernel without replacing the test process.

§Errors

See KexecError.