Files
sprout/crates/eficore/src/setup.rs
T

14 lines
455 B
Rust
Raw Normal View History

use crate::logger;
use anyhow::{Context, Result};
2025-10-01 16:45:04 -07:00
/// 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(())
2025-10-01 16:45:04 -07:00
}