From a5680cae92fc202c35b30dc3dd5977f71655a401 Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Wed, 15 Jul 2026 23:44:08 +0900 Subject: [PATCH] TEMP DIAG: keep init stdio on kernel console (disable switch_stdio) for headless boot visibility --- init/src/main.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init/src/main.rs b/init/src/main.rs index 98e778bceb..08b8662d64 100644 --- a/init/src/main.rs +++ b/init/src/main.rs @@ -119,8 +119,13 @@ fn main() { scheduler .schedule_start_and_report_errors(&mut unit_store, UnitId("00_logd.service".to_owned())); scheduler.step(&mut unit_store, &mut init_config); - if let Err(err) = switch_stdio("/scheme/log") { - init_error(&format!("failed to switch stdio to '/scheme/log': {}", err)); + // DIAGNOSTIC (temporary): keep init/daemon stdio on the kernel console + // so the full boot is visible on serial for headless debugging, instead + // of being redirected into /scheme/log (only mirrored racily to serial). + if false { + if let Err(err) = switch_stdio("/scheme/log") { + init_error(&format!("failed to switch stdio to '/scheme/log': {}", err)); + } } let runtime_target = UnitId("00_runtime.target".to_owned());