3
# boot-powerpc version 0.7 (C) Hartmut Koptein <koptein@debian.org>,
4
# PReP support (C) Matt Porter <porter@debian.org>
6
# Released under GPL 1 Mar 1999
7
# See the file COPYING for license details
8
# Released as part of the debian_cd package, not much use standalone
10
# Do install stuff for powerpc, including making bootable CDs
13
# $2 is the temporary CD build dir
15
. $BASEDIR/tools/boot/$CODENAME/common.sh
24
# Only disk 1* bootable
25
if [ $N != 1 -a $N != 1_NONUS ]; then
26
# we don't need HFS cruft on anything but CD 1
27
#echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \
33
install_languages $CDROOT
35
echo -n "--netatalk -hfs -probe -map $BASEDIR/data/hfs.map" \
37
echo -n " -prep-boot install/prep/boot.bin" >> $N.mkisofs_opts
38
# For newworld Mac booting - Note, no spaces in volid!
41
echo -n " -part -no-desktop -hfs-volid Debian/PowerPC_${CODENAME}" \
45
echo -n " -part -no-desktop -hfs-bless CD$N/install/powermac -hfs-volid Debian/PowerPC_${CODENAME}" \
49
echo 1>&2 "Only mkhybrid or mkisofs can be used"
54
DISKSROOT="$MIRROR/dists/$CODENAME/main/disks-$ARCH/current"
55
INSTALLDIR="$CDROOT/install"
57
# Debian/PowerPC consits currently for three parts: CHRP, PMac and PReP
58
# Apus, MBX and BBox will hopefully follow
60
# -- We need a generic boot-loader --
65
#-------------- Install paths -------------------------------
66
# $DISKSROOT == dists/potato/main/disks-powerpc/current/
67
# $INSTALLDIR == install/
69
# The layout has changed. Images are now in $SUBARCH/images-1.44
74
# Section for the base, rescue and drivers into the /install/
77
#--------------- APUS - Stuff -------------------------------
78
#echo Installing APUS files
80
cp -f $DISKSROOT/apus/linux.bin apus
81
cp -f $DISKSROOT/apus/images-1.44/root.bin apus
82
cp -f $DISKSROOT/apus/images-1.44/rescue.bin apus
84
#--------------- CHRP - Stuff -------------------------------
85
echo Installing CHRP files
87
cp -f $DISKSROOT/chrp/linux.bin chrp
88
cp -f $DISKSROOT/chrp/images-1.44/root.bin chrp
89
cp -f $DISKSROOT/chrp/images-1.44/rescue.bin chrp
91
#-------------- Common - Stuff ------------------------------
92
#echo Installing Common files
94
#cp -f $DISKSROOT/common/linux common
95
#cp -f $DISKSROOT/common/images-1.44/root.bin common
96
#cp -f $DISKSROOT/common/images-1.44/rescue.bin common
98
#---------------- MBX - Stuff -------------------------------
99
#echo Installing MBX files
101
#cp -f $DISKSROOT/mbx/linux mbx
102
#cp -f $DISKSROOT/mbx/images-1.44/root.bin mbx
103
#cp -f $DISKSROOT/mbx/images-1.44/rescue.bin mbx
105
#--------------- PMac - Stuff -------------------------------
106
echo Installing Power-Macintosh files
108
cp -f $DISKSROOT/powermac/linux.bin powermac/vmlinux
109
cp -f $DISKSROOT/new-powermac/linux.bin powermac/vmlinux2.4
110
cp -f $DISKSROOT/powermac/images-1.44/root.bin powermac/
111
cp -f $DISKSROOT/powermac/images-1.44/boot-floppy-hfs.img powermac/
113
cp -f $DISKSROOT/powermac/BootX* powermac/
114
cp -f $DISKSROOT/powermac/bootvars* powermac/
116
# Completely useless! It's an ext2 floppy... how is that supposed to boot?
117
# cp -f $DISKSROOT/powermac/images-1.44/rescue.bin powermac/
119
# New-world bootability
120
# This works in a subdirectory via an ugly hack; fix yaboot.
121
cat $BASEDIR/data/woody/yaboot/yaboot.conf \
122
| sed "s/CODENAME/${CODENAME}/g" > powermac/yaboot.conf
123
cp -f $BASEDIR/data/yaboot/ofboot.b powermac/
125
# Extract yaboot from the archive
126
if [ -z "$YABOOT_DEBUG" ]; then
127
YADEB="$($BASEDIR/tools/apt-selection cache show yaboot | \
128
grep ^Filename | awk '{print $2}')"
129
(ar p "${MIRROR}/${YADEB}" data.tar.gz | \
130
tar zxf - -C powermac ./usr/lib/yaboot/yaboot)
131
mv powermac/usr/lib/yaboot/yaboot powermac/yaboot
134
cp -f $YABOOT_DEBUG powermac/yaboot
136
cp -f $BASEDIR/data/woody/yaboot/boot.msg powermac/
138
#--------------- PReP - Stuff -------------------------------
139
echo Installing PReP files
141
cp -f $DISKSROOT/prep/linux.bin prep
142
cp -f $DISKSROOT/prep/images-1.44/boot.bin prep
143
cp -f $DISKSROOT/prep/images-1.44/root.bin prep
144
cp -f $DISKSROOT/prep/images-1.44/rescue.bin prep
146
#=============== fix a few things up... =====================
147
echo Installing PowerPC FAQ and tools
149
#mv basecont.txt.info common
150
#mv ../README.info ../README.powerpc.info
151
#cp -f ../README.1ST.info ../README.multicd.info