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")?;