mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 13:15:05 +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 (cherry picked from commit4d7174b1d9
)
This commit is contained in:
parent
434dc04e34
commit
449dc28540
|
@ -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 a new issue