Skip to content

Commit 2ee1d93

Browse files
backport of commit a4c731c (#27328)
Co-authored-by: Michael Smithhisler <[email protected]>
1 parent e017045 commit 2ee1d93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/qemu/driver.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,9 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
493493
// Create the base arguments
494494
emulator := "x86_64"
495495
if driverConfig.Emulator != "" {
496-
emulator = driverConfig.Emulator
496+
// COMPAT: TrimPrefix to support full emulator name
497+
// which was required in 1.11.1.
498+
emulator = strings.TrimPrefix(driverConfig.Emulator, "qemu-system-")
497499

498500
}
499501
accelerator := "tcg"

0 commit comments

Comments
 (0)