TEMP DIAG: keep init stdio on kernel console (disable switch_stdio) for headless boot visibility

This commit is contained in:
Red Bear OS
2026-07-15 23:44:08 +09:00
parent 85574c22f1
commit a5680cae92
+7 -2
View File
@@ -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());