pub struct DiscoveredIso {Show 13 fields
pub iso_path: PathBuf,
pub label: String,
pub pretty_name: Option<String>,
pub distribution: Distribution,
pub kernel: PathBuf,
pub initrd: Option<PathBuf>,
pub cmdline: Option<String>,
pub quirks: Vec<Quirk>,
pub hash_verification: HashVerification,
pub signature_verification: SignatureVerification,
pub size_bytes: Option<u64>,
pub contains_installer: bool,
pub sidecar: Option<IsoSidecar>,
}Expand description
Metadata for a single discovered ISO. Paths are relative to the (now
unmounted) ISO root and become absolute once handed to prepare.
Fields§
§iso_path: PathBufAbsolute path to the .iso file on the host filesystem.
label: StringHuman label (e.g. “Ubuntu 24.04 LTS”).
pretty_name: Option<String>Full distro name + version read from the mounted ISO’s
/etc/os-release (PRETTY_NAME), /.disk/info, or
/etc/alpine-release. None when none of those files
resolved (older installers, unfamiliar layouts). Downstream
UIs should prefer this over label when present so operators
see “Ubuntu 24.04.2 LTS (Noble Numbat)” instead of just
“Ubuntu”. (#119)
distribution: DistributionDetected distribution family.
kernel: PathBufKernel path relative to the ISO root.
initrd: Option<PathBuf>Optional initrd path relative to the ISO root.
cmdline: Option<String>Kernel command line as declared by the ISO’s boot config.
quirks: Vec<Quirk>Quirks the rescue TUI should warn about before kexec.
hash_verification: HashVerificationHash verification status (from sibling checksum files, if any).
signature_verification: SignatureVerificationMinisign signature verification status (from sibling .minisig, if any).
size_bytes: Option<u64>File size in bytes from stat(2) on iso_path. None if stat failed.
Rendered as a human-readable value in the Confirm preview pane.
contains_installer: boolTrue if this ISO is known to contain an installer that can write to disk when the user picks the wrong boot-menu entry. Determined heuristically from filename patterns. rescue-tui surfaces a yellow warning strip on the Confirm screen. (#131)
sidecar: Option<IsoSidecar>Operator-curated metadata loaded from a sibling
<iso>.aegis.toml file, if present. Cosmetic only —
display_name, description, last_verified_at, etc. The
boot decision still keys off the sha256-attested manifest.
None when no sidecar exists or when parsing failed (a
malformed sidecar logs at WARN and otherwise behaves as
“not present” — the menu falls back to the bare filename).
(#246)
Trait Implementations§
Source§impl Clone for DiscoveredIso
impl Clone for DiscoveredIso
Source§fn clone(&self) -> DiscoveredIso
fn clone(&self) -> DiscoveredIso
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more