Skip to content

Commit

Permalink
blsforme: Make some APIs public for moss
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Dec 27, 2024
1 parent 0b4ff01 commit 2ba0735
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blsforme/src/bootenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ pub enum Firmware {
#[derive(Debug)]
pub struct BootEnvironment {
/// xbootldr device
xbootldr: Option<PathBuf>,
pub xbootldr: Option<PathBuf>,

/// The EFI System Partition (stored as a device path)
esp: Option<PathBuf>,
pub esp: Option<PathBuf>,

/// Firmware in use
pub(crate) firmware: Firmware,
Expand Down
5 changes: 5 additions & 0 deletions blsforme/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ impl<'a> Manager<'a> {
Ok(mounted_paths)
}

/// Returns the boot environment
pub fn boot_environment(&self) -> &BootEnvironment {
&self.boot_env
}

/// Discover installed kernels using the mount tokens
pub fn installed_kernels(&self, schema: &Schema, _tokens: &[ScopedMount]) -> Result<Vec<Kernel>, Error> {
let bootloader = self.bootloader(schema)?;
Expand Down

0 comments on commit 2ba0735

Please sign in to comment.