summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu/options_darwin_arm64.go
diff options
context:
space:
mode:
authoretenzy <hello@mroedel.de>2021-11-17 15:30:40 +0100
committeretenzy <hello@mroedel.de>2021-11-17 17:02:04 +0100
commit010bee04c3ae05c1e406dca2ad928e723a1aeda4 (patch)
treeb18488e23c8a5e1971b8036eb8bb1888475d28fc /pkg/machine/qemu/options_darwin_arm64.go
parent85733e0b4a1d246debcc453f4248cbd9bb91a9d1 (diff)
downloadpodman-010bee04c3ae05c1e406dca2ad928e723a1aeda4.tar.gz
podman-010bee04c3ae05c1e406dca2ad928e723a1aeda4.tar.bz2
podman-010bee04c3ae05c1e406dca2ad928e723a1aeda4.zip
fix: take absolute path for dd on apple silicon
Fixes #12329 [NO NEW TESTS NEEDED] podman machine Signed-off-by: Michael Rödel <hello@mroedel.de>
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()
}