2000-02-19 16:52:52 -01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2001-06-14 23:57:10 +00:00
|
|
|
# boot-powerpc version 0.7 (C) Hartmut Koptein <koptein@debian.org>,
|
2000-02-19 16:52:52 -01:00
|
|
|
# PReP support (C) Matt Porter <porter@debian.org>
|
|
|
|
#
|
|
|
|
# Released under GPL 1 Mar 1999
|
|
|
|
# See the file COPYING for license details
|
|
|
|
# Released as part of the debian_cd package, not much use standalone
|
|
|
|
#
|
|
|
|
# Do install stuff for powerpc, including making bootable CDs
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
2002-03-25 09:03:53 -01:00
|
|
|
. $BASEDIR/tools/boot/$CODENAME/common.sh
|
|
|
|
|
2000-02-19 16:52:52 -01:00
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDROOT=$2
|
|
|
|
|
|
|
|
cd $CDROOT/..
|
|
|
|
|
2001-06-14 23:57:10 +00:00
|
|
|
# Only disk 1* bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
# we don't need HFS cruft on anything but CD 1
|
|
|
|
#echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \
|
|
|
|
# > $N.mkisofs_opts
|
|
|
|
:> $N.mkisofs_opts
|
2000-02-19 16:52:52 -01:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2002-03-25 09:03:53 -01:00
|
|
|
install_languages $CDROOT
|
|
|
|
|
2001-06-14 23:57:10 +00:00
|
|
|
echo -n "--netatalk -hfs -probe -map $BASEDIR/data/hfs.map" \
|
2000-02-19 16:52:52 -01:00
|
|
|
> $N.mkisofs_opts
|
|
|
|
echo -n " -prep-boot install/prep/boot.bin" >> $N.mkisofs_opts
|
2001-06-14 23:57:10 +00:00
|
|
|
# For newworld Mac booting - Note, no spaces in volid!
|
|
|
|
case "$MKISOFS" in
|
|
|
|
*mkhybrid)
|
|
|
|
echo -n " -part -no-desktop -hfs-volid Debian/PowerPC_${CODENAME}" \
|
|
|
|
>> $N.mkisofs_opts
|
|
|
|
;;
|
|
|
|
*mkisofs)
|
|
|
|
echo -n " -part -no-desktop -hfs-bless CD$N/install/powermac -hfs-volid Debian/PowerPC_${CODENAME}" \
|
|
|
|
>> $N.mkisofs_opts
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo 1>&2 "Only mkhybrid or mkisofs can be used"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
2000-02-19 16:52:52 -01:00
|
|
|
|
|
|
|
DISKSROOT="$MIRROR/dists/$CODENAME/main/disks-$ARCH/current"
|
|
|
|
INSTALLDIR="$CDROOT/install"
|
|
|
|
|
|
|
|
# Debian/PowerPC consits currently for three parts: CHRP, PMac and PReP
|
|
|
|
# Apus, MBX and BBox will hopefully follow
|
|
|
|
#
|
2001-06-14 23:57:10 +00:00
|
|
|
# -- We need a generic boot-loader --
|
|
|
|
# -- (We wish) --
|
|
|
|
#
|
|
|
|
cd $INSTALLDIR
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-06-14 23:57:10 +00:00
|
|
|
#-------------- Install paths -------------------------------
|
|
|
|
# $DISKSROOT == dists/potato/main/disks-powerpc/current/
|
|
|
|
# $INSTALLDIR == install/
|
2000-02-19 16:52:52 -01:00
|
|
|
#
|
2001-06-14 23:57:10 +00:00
|
|
|
# The layout has changed. Images are now in $SUBARCH/images-1.44
|
2000-02-19 16:52:52 -01:00
|
|
|
#
|
|
|
|
|
|
|
|
cd $INSTALLDIR
|
|
|
|
|
2001-06-14 23:57:10 +00:00
|
|
|
# Section for the base, rescue and drivers into the /install/
|
|
|
|
# area on the cd.
|
|
|
|
|
|
|
|
#--------------- APUS - Stuff -------------------------------
|
|
|
|
#echo Installing APUS files
|
|
|
|
mkdir apus
|
2002-03-25 09:03:53 -01:00
|
|
|
cp -f $DISKSROOT/apus/linux.bin apus
|
2001-06-14 23:57:10 +00:00
|
|
|
cp -f $DISKSROOT/apus/images-1.44/root.bin apus
|
|
|
|
cp -f $DISKSROOT/apus/images-1.44/rescue.bin apus
|
|
|
|
|
|
|
|
#--------------- CHRP - Stuff -------------------------------
|
2000-02-19 16:52:52 -01:00
|
|
|
echo Installing CHRP files
|
|
|
|
mkdir chrp
|
2002-03-25 09:03:53 -01:00
|
|
|
cp -f $DISKSROOT/chrp/linux.bin chrp
|
2001-06-14 23:57:10 +00:00
|
|
|
cp -f $DISKSROOT/chrp/images-1.44/root.bin chrp
|
|
|
|
cp -f $DISKSROOT/chrp/images-1.44/rescue.bin chrp
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-06-14 23:57:10 +00:00
|
|
|
#-------------- Common - Stuff ------------------------------
|
|
|
|
#echo Installing Common files
|
|
|
|
#mkdir common
|
|
|
|
#cp -f $DISKSROOT/common/linux common
|
|
|
|
#cp -f $DISKSROOT/common/images-1.44/root.bin common
|
|
|
|
#cp -f $DISKSROOT/common/images-1.44/rescue.bin common
|
|
|
|
|
|
|
|
#---------------- MBX - Stuff -------------------------------
|
|
|
|
#echo Installing MBX files
|
|
|
|
#mkdir mbx
|
|
|
|
#cp -f $DISKSROOT/mbx/linux mbx
|
|
|
|
#cp -f $DISKSROOT/mbx/images-1.44/root.bin mbx
|
|
|
|
#cp -f $DISKSROOT/mbx/images-1.44/rescue.bin mbx
|
|
|
|
|
|
|
|
#--------------- PMac - Stuff -------------------------------
|
2000-02-19 16:52:52 -01:00
|
|
|
echo Installing Power-Macintosh files
|
|
|
|
mkdir powermac
|
2002-03-25 09:03:53 -01:00
|
|
|
cp -f $DISKSROOT/powermac/linux.bin powermac/vmlinux
|
|
|
|
cp -f $DISKSROOT/new-powermac/linux.bin powermac/vmlinux2.4
|
2001-06-14 23:57:10 +00:00
|
|
|
cp -f $DISKSROOT/powermac/images-1.44/root.bin powermac/
|
|
|
|
cp -f $DISKSROOT/powermac/images-1.44/boot-floppy-hfs.img powermac/
|
|
|
|
|
|
|
|
cp -f $DISKSROOT/powermac/BootX* powermac/
|
|
|
|
cp -f $DISKSROOT/powermac/bootvars* powermac/
|
|
|
|
|
|
|
|
# Completely useless! It's an ext2 floppy... how is that supposed to boot?
|
|
|
|
# cp -f $DISKSROOT/powermac/images-1.44/rescue.bin powermac/
|
|
|
|
|
|
|
|
# New-world bootability
|
|
|
|
# This works in a subdirectory via an ugly hack; fix yaboot.
|
2003-10-09 21:57:34 +00:00
|
|
|
cat $BASEDIR/data/woody/yaboot/yaboot.conf \
|
2001-06-14 23:57:10 +00:00
|
|
|
| sed "s/CODENAME/${CODENAME}/g" > powermac/yaboot.conf
|
|
|
|
cp -f $BASEDIR/data/yaboot/ofboot.b powermac/
|
|
|
|
|
|
|
|
# Extract yaboot from the archive
|
|
|
|
if [ -z "$YABOOT_DEBUG" ]; then
|
2001-06-16 12:24:59 +00:00
|
|
|
YADEB="$($BASEDIR/tools/apt-selection cache show yaboot | \
|
|
|
|
grep ^Filename | awk '{print $2}')"
|
|
|
|
(ar p "${MIRROR}/${YADEB}" data.tar.gz | \
|
2001-06-14 23:57:10 +00:00
|
|
|
tar zxf - -C powermac ./usr/lib/yaboot/yaboot)
|
2001-06-16 12:24:59 +00:00
|
|
|
mv powermac/usr/lib/yaboot/yaboot powermac/yaboot
|
|
|
|
rm -rf powermac/usr
|
2001-06-14 23:57:10 +00:00
|
|
|
else
|
|
|
|
cp -f $YABOOT_DEBUG powermac/yaboot
|
|
|
|
fi
|
2003-10-09 21:57:34 +00:00
|
|
|
cp -f $BASEDIR/data/woody/yaboot/boot.msg powermac/
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-06-14 23:57:10 +00:00
|
|
|
#--------------- PReP - Stuff -------------------------------
|
2000-02-19 16:52:52 -01:00
|
|
|
echo Installing PReP files
|
|
|
|
mkdir prep
|
2002-03-25 09:03:53 -01:00
|
|
|
cp -f $DISKSROOT/prep/linux.bin prep
|
2001-06-14 23:57:10 +00:00
|
|
|
cp -f $DISKSROOT/prep/images-1.44/boot.bin prep
|
|
|
|
cp -f $DISKSROOT/prep/images-1.44/root.bin prep
|
|
|
|
cp -f $DISKSROOT/prep/images-1.44/rescue.bin prep
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-06-14 23:57:10 +00:00
|
|
|
#=============== fix a few things up... =====================
|
2000-02-19 16:52:52 -01:00
|
|
|
echo Installing PowerPC FAQ and tools
|
2001-06-14 23:57:10 +00:00
|
|
|
#mkdir common
|
2000-02-19 16:52:52 -01:00
|
|
|
#mv basecont.txt.info common
|
|
|
|
#mv ../README.info ../README.powerpc.info
|
2001-06-14 23:57:10 +00:00
|
|
|
#cp -f ../README.1ST.info ../README.multicd.info
|
2000-02-19 16:52:52 -01:00
|
|
|
|