chore(code): split much of the efi support code to crates/eficore

This commit is contained in:
alex committed 2025-11-03 20:47:21 -05:00
1 parent 48497700d8
commit 632781abbf
39 files changed
+440 -378

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
use crate::variables::VariableController;
use anyhow::Result;
/// Secure boot services.
pub struct SecureBoot;
impl SecureBoot {
/// Checks if Secure Boot is enabled on the system.
/// This might fail if retrieving the variable fails in an irrecoverable way.
pub fn enabled() -> Result<bool> {
// The SecureBoot variable will tell us whether Secure Boot is enabled at all.
VariableController::GLOBAL.get_bool("SecureBoot")
}
}