mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-14 13:29:31 +00:00
runtime-rs: add the console device to kernel boot for qemu
Add the console device to kernel boot, thus we can log out the kernel's boot message for debug. Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
@@ -2410,6 +2410,10 @@ impl<'a> QemuCmdLine<'a> {
|
||||
console_socket_chardev.set_server(true);
|
||||
console_socket_chardev.set_wait(false);
|
||||
self.devices.push(Box::new(console_socket_chardev));
|
||||
|
||||
self.kernel
|
||||
.params
|
||||
.append(&mut KernelParams::from_string("console=hvc0"));
|
||||
}
|
||||
|
||||
pub fn add_virtio_balloon(&mut self) {
|
||||
|
Reference in New Issue
Block a user