MCPcopy Create free account
hub / github.com/bootc-dev/bootc / kind

Method kind

crates/lib/src/spec.rs:288–294  ·  view source on GitHub ↗

Returns whether the Bootloader is BLSCompatible Throws and error if Bootloader is None

(&self)

Source from the content-addressed store, hash-verified

286 /// Returns whether the Bootloader is BLSCompatible
287 /// Throws and error if Bootloader is None
288 pub(crate) fn kind(&self) -> Result<BootloaderKind> {
289 match self {
290 Bootloader::Grub => Ok(BootloaderKind::GRUBClassic),
291 Bootloader::Systemd | Bootloader::GrubCC => Ok(BootloaderKind::BLSCompatible),
292 Bootloader::None => anyhow::bail!("Bootloader was None"),
293 }
294 }
295}
296
297/// A bootable entry

Callers 13

read_uefi_varFunction · 0.45
get_hostFunction · 0.45
set_unified_entrypointFunction · 0.45
switchFunction · 0.45
rollbackFunction · 0.45
editFunction · 0.45
join_host_ipc_namespaceFunction · 0.45
run_from_optFunction · 0.45
open_optionalFunction · 0.45
read_dir_optionalFunction · 0.45
gpt_workaroundFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected