Skip to content

Commit

Permalink
fix 'sudo: qemu-system-aarch64: command not found'
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha authored and spowelljr committed Oct 25, 2024
1 parent e8af3c0 commit dfbf3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/drivers/qemu/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func (d *Driver) Start() error { //nolint to suppress cyclomatic complexity 31 i
if strings.HasPrefix(d.Network, "vmnet-") {
//TODO: handle windows
startProgram = "sudo"
startCmd = append([]string{"-S", d.Program}, startCmd...)
startCmd = append([]string{"--stdin", "env", fmt.Sprintf("PATH=%q", os.Getenv("PATH")), d.Program}, startCmd...)
}

startFunc := cmdOutErr
Expand Down

0 comments on commit dfbf3cf

Please sign in to comment.