init: use /scheme/debug/no-preserve for earliest debug output

This commit is contained in:
Red Bear OS
2026-07-10 19:41:26 +03:00
parent 2ade335e3c
commit e758e68eb3
+4 -1
View File
@@ -113,7 +113,10 @@ fn switch_root(unit_store: &mut UnitStore, config: &mut InitConfig, prefix: &Pat
}
fn main() {
eprintln!("INIT: main() entered");
if let Ok(mut f) = std::fs::OpenOptions::new().write(true).open("/scheme/debug/no-preserve") {
use std::io::Write;
let _ = writeln!(f, "INIT: main() entered");
}
let mut init_config = InitConfig::new();
let mut unit_store = UnitStore::new();
let mut scheduler = Scheduler::new();