This commit is contained in:
1 parent
fe6b03e268
commit
3eb5cd434c
1 file changed
+6
-1
+6
-1
@@ -35,6 +35,9 @@ pub struct BootCmd {
|
||||
/// relative to the image's WORKINGDIR. Can be repeated.
|
||||
#[clap(long)]
|
||||
mount: Vec<String>,
|
||||
|
||||
/// Extra arguments to qemu
|
||||
extra: Vec<String>,
|
||||
}
|
||||
|
||||
/// 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:?}");
|
||||
|
||||
|
||||
Reference in new issue
Block a user