From 6e11964121615bfabadf9f3c5cf6faafad6c5186 Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Thu, 16 Jul 2026 07:30:29 +0900 Subject: [PATCH] uefi: demote expected no-GPT and no-EDID fallbacks from warn to debug --- src/os/uefi/device.rs | 5 ++++- src/os/uefi/mod.rs | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/os/uefi/device.rs b/src/os/uefi/device.rs index ba45bba3db..7666cb9eef 100644 --- a/src/os/uefi/device.rs +++ b/src/os/uefi/device.rs @@ -41,7 +41,10 @@ fn gpt_find_redoxfs_offset(disk: &mut DiskEfi) -> u64 { header_buf[..copy_len].copy_from_slice(&read_buf[..copy_len]); if &header_buf[0..8] != b"EFI PART" { - log::warn!("GPT: no valid signature at LBA 1"); + // Expected for a raw (partition-less) RedoxFS live image: there is no + // GPT, so fall back to the 2 MiB offset where RedoxFS lives. Diagnostic + // only, not a warning. + log::debug!("GPT: no signature at LBA 1 (raw RedoxFS image); using 2 MiB fallback"); return 2 * crate::MIBI as u64; } diff --git a/src/os/uefi/mod.rs b/src/os/uefi/mod.rs index 037ba121cb..28882bcb29 100644 --- a/src/os/uefi/mod.rs +++ b/src/os/uefi/mod.rs @@ -121,8 +121,13 @@ impl OsEfi { match EdidActive::handle_protocol(handle) { Ok(efi_edid) => Some(efi_edid), Err(err) => { - log::warn!( - "Failed to get EFI EDID from handle {:?}: {:?}", + // Many firmwares (incl. QEMU/OVMF) do + // not implement the EDID protocol; the + // resolution list still works without + // it, so this is diagnostic, not a + // warning. + log::debug!( + "EFI EDID unavailable from handle {:?}: {:?}", handle, err );