Skip to content

Commit

Permalink
make efiboot boot add add the entry to boot order
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Sep 1, 2023
1 parent 404e5f5 commit ae812ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions efiboot/src/cli/boot/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ pub fn add(
}
};

// create the entry
manager.add_boot_entry(id, entry).unwrap();

// add it to boot order
let mut ids = manager.get_boot_order().unwrap();
ids.insert(0, id);
manager.set_boot_order(ids).unwrap();

println!("Added entry with success");
}

0 comments on commit ae812ad

Please sign in to comment.