From 679b0c029097ddc1f771e6edfd6d70af41df52e4 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 1 Nov 2025 17:09:49 -0400 Subject: [PATCH] feat(bootloader-interface): signal support for XBOOTLDR --- src/integrations/bootloader_interface.rs | 5 ++++- src/integrations/bootloader_interface/bitflags.rs | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/integrations/bootloader_interface.rs b/src/integrations/bootloader_interface.rs index b303209..5c7078e 100644 --- a/src/integrations/bootloader_interface.rs +++ b/src/integrations/bootloader_interface.rs @@ -24,7 +24,10 @@ impl BootloaderInterface { /// The feature we support in Sprout. fn features() -> LoaderFeatures { - LoaderFeatures::LoadDriver | LoaderFeatures::Tpm2ActivePcrBanks | LoaderFeatures::RetainShim + LoaderFeatures::Xbootldr + | LoaderFeatures::LoadDriver + | LoaderFeatures::Tpm2ActivePcrBanks + | LoaderFeatures::RetainShim } /// Tell the system that Sprout was initialized at the current time. diff --git a/src/integrations/bootloader_interface/bitflags.rs b/src/integrations/bootloader_interface/bitflags.rs index 7040a1f..280ae0a 100644 --- a/src/integrations/bootloader_interface/bitflags.rs +++ b/src/integrations/bootloader_interface/bitflags.rs @@ -16,7 +16,7 @@ bitflags! { const BootCounting = 1 << 4; /// Bootloader supports detection from XBOOTLDR partitions. const Xbootldr = 1 << 5; - /// Bootloader supports handling of random seeds. + /// Bootloader supports the handling of random seeds. const RandomSeed = 1 << 6; /// Bootloader supports loading drivers. const LoadDriver = 1 << 7; @@ -30,7 +30,7 @@ bitflags! { const SecureBootEnroll = 1 << 11; /// Bootloader retains the shim. const RetainShim = 1 << 12; - /// Bootloader supports disabling the menu via menu timeout variable. + /// Bootloader supports disabling the menu via the menu timeout variable. const MenuDisable = 1 << 13; /// Bootloader supports multi-profile UKI. const MultiProfileUki = 1 << 14;