From 3eb5cd434c87130df66a5f495c9e22041867f7f6 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Mon, 26 Oct 2026 10:30:14 +0100 Subject: [PATCH] Add ability to pass arbitrary args to qemu --- src/qemu.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qemu.rs b/src/qemu.rs index f48c1e1..d5b256f 100644 --- a/src/qemu.rs +++ b/src/qemu.rs @@ -35,6 +35,9 @@ pub struct BootCmd { /// relative to the image's WORKINGDIR. Can be repeated. #[clap(long)] mount: Vec, + + /// Extra arguments to qemu + extra: Vec, } /// Invoke `qemu` to boot a boco image. See [`BootCmd`] for options @@ -48,6 +51,7 @@ pub(crate) fn boot( forward, cmd, mount, + extra, }: BootCmd, ) -> Result<()> { let reg_dir = registry_dir(&name)?; @@ -165,7 +169,8 @@ pub(crate) fn boot( .args(["-no-reboot"]) .args(["-append", &cmdline]) .args(["-nographic"]) - .args(["-nic", &network]); + .args(["-nic", &network]) + .args(&extra); println!("{command:?}");