From 08b9e2570e52dd026eff0fef85aadc3a1317ac79 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 1 Nov 2025 17:50:54 -0400 Subject: [PATCH] fix(bootloader-interface): disable setting of LoaderEntryDefault since this is intended to be user set --- src/integrations/bootloader_interface.rs | 9 --------- src/main.rs | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/src/integrations/bootloader_interface.rs b/src/integrations/bootloader_interface.rs index e6a422d..42db6f1 100644 --- a/src/integrations/bootloader_interface.rs +++ b/src/integrations/bootloader_interface.rs @@ -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( diff --git a/src/main.rs b/src/main.rs index 1859b72..476305e 100644 --- a/src/main.rs +++ b/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")?;