mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-05 01:42:20 +00:00
chore(code): split much of the efi support code to crates/eficore
This commit is contained in:
39 files changed
+440
-378
No files matched your search
@@ -0,0 +1,14 @@
|
||||
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(())
|
||||
}
|
||||
Reference in new issue
Block a user