pub enum Distribution {
Arch,
Debian,
Fedora,
RedHat,
Alpine,
NixOS,
Windows,
Unknown,
}Expand description
Supported distribution families.
Ordering of detection matters: more specific matches (Alpine’s
boot/vmlinuz-lts, NixOS’s boot/bzImage, RHEL-family’s images/pxeboot)
must run before the broader ones (Arch’s generic boot/ heuristic).
Variants§
Arch
Arch Linux install media (arch/boot/x86_64/vmlinuz-linux).
Debian
Debian and Ubuntu live/install media (casper/, install.amd/, live/).
Fedora
Fedora install media (images/pxeboot/).
RedHat
RHEL / Rocky / AlmaLinux — same images/pxeboot layout as Fedora
but a distinct signing CA and stricter lockdown kexec policy.
Alpine
Alpine Linux (boot/vmlinuz-lts).
NixOS
NixOS install media (boot/bzImage).
Windows
Windows installer media. Recognized by bootmgr, sources/boot.wim,
or efi/microsoft/boot/. Not kexec-bootable: Windows uses a
fundamentally different boot protocol (NT loader, not Linux kernel).
Surfaced so the TUI can give a specific diagnostic rather than fail
silently.
Unknown
Layout not recognized.
Implementations§
Source§impl Distribution
impl Distribution
Sourcepub fn from_paths(kernel_path: &Path) -> Self
pub fn from_paths(kernel_path: &Path) -> Self
Detect distribution from a kernel path observed inside an ISO.
Trait Implementations§
Source§impl Clone for Distribution
impl Clone for Distribution
Source§fn clone(&self) -> Distribution
fn clone(&self) -> Distribution
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more