release: Fix powerpc boot block uudecoding

Confusingly, uuencode writes to stdout by default, but uudecode does not.

Fixes:	6c3e01bf85 "release: Randomize powerpc boot block file name"
MFC after:	3 days
This commit is contained in:
Colin Percival 2024-04-12 17:50:15 -07:00
parent 25038e8de6
commit 4d7174b1d9
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ if [ -n "$bootable" ]; then
BOOTBLOCK=$(mktemp /tmp/hfs-boot-block.XXXXXX)
# Apple boot code
uudecode "`dirname "$0"`/hfs-boot.bz2.uu" | bunzip2 > $BOOTBLOCK
uudecode -p "`dirname "$0"`/hfs-boot.bz2.uu" | bunzip2 > $BOOTBLOCK
OFFSET=$(hd $BOOTBLOCK | grep 'Loader START' | cut -f 1 -d ' ')
OFFSET=0x$(echo 0x$OFFSET | awk '{printf("%x\n",$1/512);}')
dd if="$BASEBITSDIR/boot/loader" of=$BOOTBLOCK seek=$OFFSET conv=notrunc