pub enum KexecError {
SignatureRejected,
LockdownRefused,
UnsupportedImage,
Io(Error),
InvalidPath(PathBuf),
Unsupported,
}Expand description
Errors returned while preparing or invoking kexec.
Classification is deliberately narrow so the TUI can render a specific, user-actionable diagnostic instead of a black screen.
Variants§
SignatureRejected
Kernel signature verification (KEXEC_SIG) rejected the image.
Maps to EKEYREJECTED from kexec_file_load(2). Typical cause: the
ISO’s kernel is self-signed or signed by a CA not present in the
platform / MOK keyring. User remedy: enroll the key via mokutil.
LockdownRefused
Kernel lockdown / Secure Boot refused the operation.
Maps to EPERM from kexec_file_load(2) when lockdown is integrity
or confidentiality mode. User remedy: none — by design.
UnsupportedImage
Image format rejected by the kernel’s file loader (e.g. not a bzImage).
Maps to ENOEXEC.
Io(Error)
Underlying I/O or file-descriptor failure.
InvalidPath(PathBuf)
Caller supplied a path containing an interior NUL byte.
Unsupported
Crate compiled for a non-Linux target; no kexec available.
Trait Implementations§
Source§impl Debug for KexecError
impl Debug for KexecError
Source§impl Display for KexecError
impl Display for KexecError
Source§impl Error for KexecError
impl Error for KexecError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()