diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index a871d92fc..29127d316 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -47,15 +47,20 @@ parts: cd ${pkg_gopath} # build and install + arch=$(uname -m) + if [ ${arch} == "ppc64le" ]; then + arch="ppc64" + fi + make \ PREFIX=/snap/${SNAPCRAFT_PROJECT_NAME}/current/usr \ SKIP_GO_VERSION_CHECK=1 \ - QEMUCMD=qemu-system-$(uname -m) + QEMUCMD=qemu-system-$arch make install \ PREFIX=/usr \ DESTDIR=${SNAPCRAFT_PART_INSTALL} \ SKIP_GO_VERSION_CHECK=1 \ - QEMUCMD=qemu-system-$(uname -m) + QEMUCMD=qemu-system-$arch # A snap is read-only squashfs, unfourtunately it's not possible to use the rootfs image with DAX # since rw access is required therefore initrd image must be used instead.