Skip to content

Commit a4c731c

Browse files
qemu: support both binary and arch for emulator parameter (#27322)
1 parent 535888a commit a4c731c

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)