Work around to get armv7h builds for the Pi4.

This commit is contained in:
stormdragon2976 2023-01-21 01:31:45 -05:00
parent 1e32dac8da
commit 0796f3fe65

View File

@ -145,7 +145,13 @@ mount "${loopdev}p1" /mnt/boot
mounted=0
imageFileName=$(mktemp)
wget "${url[$imageVersion]}" -O "${imageFileName}"
if [[ $imageVersion -eq 32 ]]; then
# Workaround for bsdtar errors when extracting 32 bit image.
set +e
fi
bsdtar -xpf "${imageFileName}" -C /mnt
# Set -e in case it got unset for 32 bit image
set -e
arch-chroot /mnt << EOF
# set up pacman
pacman-key --init