From 99653b519218092c0ad3d1f3e76c63c351ec66ca Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Mon, 27 Oct 2025 12:25:22 -0400 Subject: [PATCH] fix(menu): hide the entry name from the menu since it can be long with autoconfigure --- src/autoconfigure/bls.rs | 4 ++-- src/menu.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/autoconfigure/bls.rs b/src/autoconfigure/bls.rs index a21c904..07bbddb 100644 --- a/src/autoconfigure/bls.rs +++ b/src/autoconfigure/bls.rs @@ -4,7 +4,7 @@ use crate::config::RootConfiguration; use crate::entries::EntryDeclaration; use crate::generators::GeneratorDeclaration; use crate::generators::bls::BlsConfiguration; -use anyhow::Context; +use anyhow::{Context, Result}; use uefi::cstr16; use uefi::fs::{FileSystem, Path}; use uefi::proto::device_path::DevicePath; @@ -19,7 +19,7 @@ pub fn scan( filesystem: &mut FileSystem, root: &DevicePath, config: &mut RootConfiguration, -) -> anyhow::Result { +) -> Result { // BLS has a loader.conf file that can specify its own auto-entries mechanism. let bls_loader_conf_path = Path::new(cstr16!("\\loader\\loader.conf")); // BLS also has an entries directory that can specify explicit entries. diff --git a/src/menu.rs b/src/menu.rs index 1a9c09f..a22639d 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -97,7 +97,7 @@ fn select_with_input<'a>( info!("Boot Menu:"); for (index, entry) in entries.iter().enumerate() { let title = entry.context().stamp(&entry.declaration().title); - info!(" [{}] {} ({})", index, title, entry.name()); + info!(" [{}] {}", index, title); } }