Skip to content

Commit

Permalink
bootloader: Remove .install() public API
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Dec 22, 2024
1 parent 59aa03d commit 978763a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions blsforme/src/bootloader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ impl<'a, 'b> Bootloader<'a, 'b> {
}
}

/// Install a single kernel, create records for it.
pub fn install(&self, cmdline: &str, entry: &Entry) -> Result<(), Error> {
match &self {
Bootloader::Systemd(s) => s.install(cmdline, entry),
}
}

/// Grab the installed entries
pub fn installed_kernels(&self) -> Result<Vec<Kernel>, Error> {
match &self {
Expand Down
2 changes: 1 addition & 1 deletion blsforme/src/bootloader/systemd_boot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl<'a, 'b> Loader<'a, 'b> {
}

/// Install a kernel to the ESP or XBOOTLDR, write a config for it
pub(super) fn install(&self, cmdline: &str, entry: &Entry) -> Result<(), super::Error> {
fn install(&self, cmdline: &str, entry: &Entry) -> Result<(), super::Error> {
let loader_id = self
.boot_root
.join_insensitive("loader")
Expand Down

0 comments on commit 978763a

Please sign in to comment.