Skip to content

Commit

Permalink
fix: take absolute path for dd on apple silicon
Browse files Browse the repository at this point in the history
Fixes containers#12329

[NO NEW TESTS NEEDED] podman machine

Signed-off-by: Michael Rödel <[email protected]>
  • Loading branch information
etenzy committed Nov 17, 2021
1 parent 85733e0 commit 010bee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machine/qemu/options_darwin_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (v *MachineVM) addArchOptions() []string {

func (v *MachineVM) prepare() error {
ovmfDir := getOvmfDir(v.ImagePath, v.Name)
cmd := []string{"dd", "if=/dev/zero", "conv=sync", "bs=1m", "count=64", "of=" + ovmfDir}
cmd := []string{"/bin/dd", "if=/dev/zero", "conv=sync", "bs=1m", "count=64", "of=" + ovmfDir}
return exec.Command(cmd[0], cmd[1:]...).Run()
}

Expand Down

0 comments on commit 010bee0

Please sign in to comment.