init: add debug eprintln at startup to locate panic site

This commit is contained in:
Red Bear OS
2026-07-10 16:22:14 +03:00
parent 417fe4a4fa
commit 2ade335e3c
+2
View File
@@ -113,9 +113,11 @@ fn switch_root(unit_store: &mut UnitStore, config: &mut InitConfig, prefix: &Pat
}
fn main() {
eprintln!("INIT: main() entered");
let mut init_config = InitConfig::new();
let mut unit_store = UnitStore::new();
let mut scheduler = Scheduler::new();
eprintln!("INIT: about to switch_root (initfs)");
switch_root(
&mut unit_store,