feat(boot): basic support for secure boot via shim protocol

This commit is contained in:
alex committed 2025-10-30 22:56:01 -04:00
1 parent 92f611e9a8
commit f593f5a601
13 files changed
+331 -28

No files matched your search

+6
View File
@@ -90,4 +90,10 @@ impl VariableController {
.collect::<Vec<u8>>();
self.set(key, &encoded, class)
}
/// Set a boolean variable specified by `key` to `value`, converting the value.
/// The variable `class` controls the attributes for the variable.
pub fn set_bool(&self, key: &str, value: bool) -> Result<()> {
self.set(key, &[value as u8], VariableClass::BootAndRuntimeTemporary)
}
}