virtfw-varstore 0.3.4

efi variable store
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//!
//! efi variable store implementation -- handle authenticated variables
//!
use virtfw_libefi::efivar::types::EfiVarAttr;
use virtfw_libefi::guids;

use crate::store::EfiVarStore;

impl EfiVarStore {
    pub fn quirk_disable_shim_reboot(&mut self, enabled: bool) {
        self.set_unchecked_bool(
            &guids::ShimVariable,
            "FB_NO_REBOOT",
            EfiVarAttr::new_nv_bs_rt(),
            enabled,
        );
    }
}