TEMP DIAG: keep init stdio on kernel console (disable switch_stdio) for headless boot visibility
This commit is contained in:
+7
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user