diff --git a/builder/qemu/config.go b/builder/qemu/config.go index 12e7e1833..826b2edef 100644 --- a/builder/qemu/config.go +++ b/builder/qemu/config.go @@ -303,7 +303,7 @@ type Config struct { // `{{ .HTTPIP }}`, `{{ .HTTPPort }}`, `{{ .HTTPDir }}`, // `{{ .OutputDir }}`, `{{ .Name }}`, and `{{ .SSHHostPort }}` QemuArgs [][]string `mapstructure:"qemuargs" required:"false"` - // A map of custom arguemnts to pass to qemu-img commands, where the key + // A map of custom arguments to pass to qemu-img commands, where the key // is the subcommand, and the values are lists of strings for each flag. // Example: // @@ -322,15 +322,15 @@ type Config struct { // The arguments will be constructed as follows: // - Convert: // Default is `qemu-img convert -O $format $sourcepath $targetpath`. Adding - // arguments ["-foo", "bar"] to qemu_img_args will change this to + // arguments ["-foo", "bar"] to qemu_img_args.convert will change this to // `qemu-img convert -foo bar -O $format $sourcepath $targetpath` // - Create: // Default is `create -f $format $targetpath $size`. Adding arguments - // ["-foo", "bar"] to qemu_img_args will change this to + // ["-foo", "bar"] to qemu_img_args.create will change this to // "create -f qcow2 -foo bar target.qcow2 1234M" // - Resize: // Default is `qemu-img resize -f $format $sourcepath $size`. Adding - // arguments ["-foo", "bar"] to qemu_img_args will change this to + // arguments ["-foo", "bar"] to qemu_img_args.resize will change this to // `qemu-img resize -f $format -foo bar $sourcepath $size` QemuImgArgs QemuImgArgs `mapstructure:"qemu_img_args" required:"false"` // The name of the Qemu binary to look for. This diff --git a/website/pages/partials/builder/qemu/Config-not-required.mdx b/website/pages/partials/builder/qemu/Config-not-required.mdx index 7e4a8122e..9b5b140de 100644 --- a/website/pages/partials/builder/qemu/Config-not-required.mdx +++ b/website/pages/partials/builder/qemu/Config-not-required.mdx @@ -231,7 +231,7 @@ `{{ .HTTPIP }}`, `{{ .HTTPPort }}`, `{{ .HTTPDir }}`, `{{ .OutputDir }}`, `{{ .Name }}`, and `{{ .SSHHostPort }}` -- `qemu_img_args` (QemuImgArgs) - A map of custom arguemnts to pass to qemu-img commands, where the key +- `qemu_img_args` (QemuImgArgs) - A map of custom arguments to pass to qemu-img commands, where the key is the subcommand, and the values are lists of strings for each flag. Example: @@ -250,15 +250,15 @@ The arguments will be constructed as follows: - Convert: Default is `qemu-img convert -O $format $sourcepath $targetpath`. Adding - arguments ["-foo", "bar"] to qemu_img_args will change this to + arguments ["-foo", "bar"] to qemu_img_args.convert will change this to `qemu-img convert -foo bar -O $format $sourcepath $targetpath` - Create: Default is `create -f $format $targetpath $size`. Adding arguments - ["-foo", "bar"] to qemu_img_args will change this to + ["-foo", "bar"] to qemu_img_args.create will change this to "create -f qcow2 -foo bar target.qcow2 1234M" - Resize: Default is `qemu-img resize -f $format $sourcepath $size`. Adding - arguments ["-foo", "bar"] to qemu_img_args will change this to + arguments ["-foo", "bar"] to qemu_img_args.resize will change this to `qemu-img resize -f $format -foo bar $sourcepath $size` - `qemu_binary` (string) - The name of the Qemu binary to look for. This