mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 23:52:22 +00:00
15 lines
455 B
Rust
15 lines
455 B
Rust
use crate::logger;
|
|
use anyhow::{Context, Result};
|
|
|
|
/// Initializes the UEFI environment.
|
|
pub fn init() -> Result<()> {
|
|
// Initialize the logger for Sprout.
|
|
// NOTE: This cannot use a result type as errors need to be printed
|
|
// using the logger, which is not initialized until this returns.
|
|
logger::init();
|
|
|
|
// Initialize further UEFI internals.
|
|
uefi::helpers::init().context("unable to initialize uefi environment")?;
|
|
Ok(())
|
|
}
|