fix(menu): hide the entry name from the menu since it can be long with autoconfigure

This commit is contained in:
2025-10-27 12:25:22 -04:00
parent 2a76e4f798
commit 99653b5192
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ use crate::config::RootConfiguration;
use crate::entries::EntryDeclaration; use crate::entries::EntryDeclaration;
use crate::generators::GeneratorDeclaration; use crate::generators::GeneratorDeclaration;
use crate::generators::bls::BlsConfiguration; use crate::generators::bls::BlsConfiguration;
use anyhow::Context; use anyhow::{Context, Result};
use uefi::cstr16; use uefi::cstr16;
use uefi::fs::{FileSystem, Path}; use uefi::fs::{FileSystem, Path};
use uefi::proto::device_path::DevicePath; use uefi::proto::device_path::DevicePath;
@@ -19,7 +19,7 @@ pub fn scan(
filesystem: &mut FileSystem, filesystem: &mut FileSystem,
root: &DevicePath, root: &DevicePath,
config: &mut RootConfiguration, config: &mut RootConfiguration,
) -> anyhow::Result<bool> { ) -> Result<bool> {
// BLS has a loader.conf file that can specify its own auto-entries mechanism. // 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")); let bls_loader_conf_path = Path::new(cstr16!("\\loader\\loader.conf"));
// BLS also has an entries directory that can specify explicit entries. // BLS also has an entries directory that can specify explicit entries.

View File

@@ -97,7 +97,7 @@ fn select_with_input<'a>(
info!("Boot Menu:"); info!("Boot Menu:");
for (index, entry) in entries.iter().enumerate() { for (index, entry) in entries.iter().enumerate() {
let title = entry.context().stamp(&entry.declaration().title); let title = entry.context().stamp(&entry.declaration().title);
info!(" [{}] {} ({})", index, title, entry.name()); info!(" [{}] {}", index, title);
} }
} }