mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 10:30:17 +00:00
fix(bootloader-interface): disable setting of LoaderEntryDefault since this is intended to be user set
This commit is contained in:
@@ -139,15 +139,6 @@ impl BootloaderInterface {
|
||||
)
|
||||
}
|
||||
|
||||
/// Tell the system what the default boot entry is.
|
||||
pub fn set_default_entry(entry: String) -> Result<()> {
|
||||
Self::VENDOR.set_cstr16(
|
||||
"LoaderEntryDefault",
|
||||
&entry,
|
||||
VariableClass::BootAndRuntimeTemporary,
|
||||
)
|
||||
}
|
||||
|
||||
/// Tell the system what the selected boot entry is.
|
||||
pub fn set_selected_entry(entry: String) -> Result<()> {
|
||||
Self::VENDOR.set_cstr16(
|
||||
|
||||
11
src/main.rs
11
src/main.rs
@@ -269,17 +269,6 @@ fn run() -> Result<()> {
|
||||
entry.mark_default();
|
||||
}
|
||||
|
||||
// Iterate over all the entries and tell the bootloader interface what the entries are.
|
||||
for entry in &entries {
|
||||
// If the entry is the default entry, tell the bootloader interface it is the default.
|
||||
if entry.is_default() {
|
||||
// Tell the bootloader interface what the default entry is.
|
||||
BootloaderInterface::set_default_entry(entry.name().to_string())
|
||||
.context("unable to set default entry in bootloader interface")?;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Tell the bootloader interface what entries are available.
|
||||
BootloaderInterface::set_entries(entries.iter().map(|entry| entry.name()))
|
||||
.context("unable to set entries in bootloader interface")?;
|
||||
|
||||
Reference in New Issue
Block a user