virtualizationservice: Add crashkernel=17M when launching VM
Microdroid kernel would not have crashkernel=17M by default, so add it back for making kdump happy. Bug: 243630590 Test: && - `adb shell cat /proc/cmdline` still have crashkernel=17M && with custom microdroid kernel without crashkernel=17M. - `adb shell cat /proc/meminfo` remains same regardless of && crashkernel=17M in microdroid kernel. Change-Id: Ic36f1116288af51ee9068835004f381ba0608e0f
This commit is contained in:
parent
b0c31f2f06
commit
b281406ce6
|
@ -546,6 +546,7 @@ fn run_vm(
|
|||
debug!("Preserving FDs {:?}", preserved_fds);
|
||||
command.preserved_fds(preserved_fds);
|
||||
|
||||
command.arg("--params").arg("crashkernel=17M");
|
||||
print_crosvm_args(&command);
|
||||
|
||||
let result = SharedChild::spawn(&mut command)?;
|
||||
|
|
Loading…
Reference in New Issue