Skip to content

Commit

Permalink
Merge pull request #96 from gardenlinux/fix/rosetta
Browse files Browse the repository at this point in the history
fix: make cross-arch build work with rosetta on mac
  • Loading branch information
Akendo authored Sep 5, 2024
2 parents c90384a + 68983ed commit fcc7676
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder/image.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ chroot_dir="$(mktemp -d)"
mount -t tmpfs tmpfs "$chroot_dir"
tar --extract --xattrs --xattrs-include '*' --directory "$chroot_dir" < "$1"

mount --rbind --make-rslave /proc "$chroot_dir/proc"

#shellcheck disable=SC2016
chroot "$chroot_dir" dpkg-query --show --showformat='${binary:Package} ${Version}\n' > "$2"

umount -l "$chroot_dir/proc"

umount "$chroot_dir"
rmdir "$chroot_dir"

0 comments on commit fcc7676

Please sign in to comment.