efivarcli 2.0.0

EFI boot manager variable editor written in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::exit_code::ExitCode;

use efivar::VarManager;

pub fn run(manager: &mut dyn VarManager, ids: Vec<u16>) -> ExitCode {
    manager.set_boot_order(ids.clone()).unwrap(); // TODO remove clone() call

    println!(
        "Overwrote boot order. New boot order: {}",
        super::boot_order_str(&ids)
    );

    ExitCode::SUCCESS
}