summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu/options_darwin_arm64.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-18 12:44:24 +0100
committerGitHub <noreply@github.com>2021-11-18 12:44:24 +0100
commit69e1204e5e5f73319930fa957a850cb8d3dc6910 (patch)
tree6c35649b11c7d2919a79fe745dd3751add5c2714 /pkg/machine/qemu/options_darwin_arm64.go
parent878d22e8319ad6d8df623d8f592db84f8b0096a2 (diff)
parent010bee04c3ae05c1e406dca2ad928e723a1aeda4 (diff)
downloadpodman-69e1204e5e5f73319930fa957a850cb8d3dc6910.tar.gz
podman-69e1204e5e5f73319930fa957a850cb8d3dc6910.tar.bz2
podman-69e1204e5e5f73319930fa957a850cb8d3dc6910.zip
Merge pull request #12330 from etenzy/main
fix: take absolute path for dd on apple silicon
Diffstat (limited to 'pkg/machine/qemu/options_darwin_arm64.go')
-rw-r--r--pkg/machine/qemu/options_darwin_arm64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/qemu/options_darwin_arm64.go b/pkg/machine/qemu/options_darwin_arm64.go
index 43cd3d69d..727a275d2 100644
--- a/pkg/machine/qemu/options_darwin_arm64.go
+++ b/pkg/machine/qemu/options_darwin_arm64.go
@@ -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()
}