diff options
author | etenzy <hello@mroedel.de> | 2021-11-17 15:30:40 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-12-06 15:00:47 -0500 |
commit | 0282f98b3cabad5ff873dc7c391151854f1501b7 (patch) | |
tree | dd24c8e269867cbdfc55a50cd322dafb8c0ac456 /pkg/machine | |
parent | b5ded05f98341575b9699197cd8a75840004b340 (diff) | |
download | podman-0282f98b3cabad5ff873dc7c391151854f1501b7.tar.gz podman-0282f98b3cabad5ff873dc7c391151854f1501b7.tar.bz2 podman-0282f98b3cabad5ff873dc7c391151854f1501b7.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')
-rw-r--r-- | pkg/machine/qemu/options_darwin_arm64.go | 2 |
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() } |