vm --enable-earlycon arg: also enable keep_bootcon
Should help with debugging crashes that happen after boot console is
unregisted, but before first_staged_init hasn't setup console yet
Bug: 377677758
Test: vm run-microdroid --enable-earlycon
Change-Id: Ia342887dbb7f1b0132b9dd337cfef8f85d6ac4e1
diff --git a/android/vm/src/run.rs b/android/vm/src/run.rs
index 2157ea8..0037327 100644
--- a/android/vm/src/run.rs
+++ b/android/vm/src/run.rs
@@ -173,6 +173,7 @@
} else {
bail!("unexpected architecture!");
}
+ custom_config.extraKernelCmdlineParams.push(String::from("keep_bootcon"));
}
let vm_config = VirtualMachineConfig::AppConfig(VirtualMachineAppConfig {