feat: do not display kernel logs with --kernel

This commit is contained in:
2026-06-16 22:07:28 +02:00
parent 931a6dcfd5
commit 8875bcc92a
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -56,15 +56,16 @@ pub fn launch_qemu(config: QemuConfig) -> Result<()> {
// Build kernel command line
// For initramfs boot, use rdinit= instead of init=
// No root= needed as initramfs becomes the rootfs
// 'quiet' suppresses kernel log messages for a cleaner console
let kernel_append = if let Some(ref cmd) = config.command {
let cmd_str = cmd.join(" ");
format!(
"console=ttyS0 rdinit=/bin/sh -- -c \"{}\"",
"console=ttyS0 quiet rdinit=/bin/sh -- -c \"{}\"",
cmd_str
)
} else {
// Default to interactive shell
"console=ttyS0 rdinit=/bin/sh".to_string()
"console=ttyS0 quiet rdinit=/bin/sh".to_string()
};
veprintln!("Launching QEMU: {}", qemu_bin);