mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-21 07:15:49 +00:00
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:
parent
25038e8de6
commit
4d7174b1d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user