2000-03-14 03:07:15 -01:00
|
|
|
#!/bin/bash -e
|
|
|
|
#
|
|
|
|
# boot-sparc v 2.00 (c) Steve Dunham <dunham@cse.msu.edu>, Eric
|
1999-11-11 16:10:37 -01:00
|
|
|
# Delaunay <delaunay@lix.polytechnique.fr>, Steve McIntyre
|
2000-03-14 03:07:15 -01:00
|
|
|
# <stevem@chiark.greenend.org.uk>, Ben Collins <bcollins@debian.org>
|
1999-11-11 16:10:37 -01:00
|
|
|
# Released under GPL 31 Mar 1999
|
|
|
|
# See the file COPYING for license details
|
|
|
|
# Released as part of the slink_cd package, not much use standalone
|
|
|
|
#
|
2000-03-30 14:09:36 +00:00
|
|
|
# Do install stuff for sparc, including making first CD bootable
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-02-19 16:52:52 -01:00
|
|
|
set -e
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
2000-03-14 03:07:15 -01:00
|
|
|
:> $N.mkisofs_opts
|
|
|
|
|
2000-03-13 16:55:31 -01:00
|
|
|
# Disk 1 only
|
2000-03-14 03:07:15 -01:00
|
|
|
[ "$N" = 1 ] || exit 0
|
2000-03-12 23:35:26 -01:00
|
|
|
|
2000-03-14 03:58:56 -01:00
|
|
|
echo "-B boot/second.b boot1" > $N.mkisofs_opts
|
2000-03-14 03:07:15 -01:00
|
|
|
rm -rf boot1
|
2000-03-12 23:35:26 -01:00
|
|
|
|
2000-03-14 03:07:15 -01:00
|
|
|
inst=boot1
|
2000-03-12 21:30:06 -01:00
|
|
|
|
2000-03-14 03:07:15 -01:00
|
|
|
# Setup directories
|
|
|
|
mkdir -p $inst/{boot/sun4{u,cdm},etc}
|
2000-03-12 21:30:06 -01:00
|
|
|
|
2000-03-13 16:55:31 -01:00
|
|
|
# put the relevant parts of SILO boot loader
|
2000-03-31 05:14:57 +00:00
|
|
|
(ar p $MIRROR/dists/$CODENAME/main/binary-sparc/base/silo_* data.tar.gz | \
|
2000-04-09 17:14:17 +00:00
|
|
|
tar zxf - -C $inst/ ./boot/{cd,second}.b)
|
2000-03-09 20:06:03 -01:00
|
|
|
|
2000-03-14 03:07:15 -01:00
|
|
|
# Some custom etc files
|
2000-03-22 16:42:48 -01:00
|
|
|
cp -p $BASEDIR/tools/boot/potato/sparc-etc/{boot-msg.txt,debian.txt,silo.conf} \
|
|
|
|
$inst/etc/
|
2000-03-09 20:06:03 -01:00
|
|
|
|
2000-03-14 03:07:15 -01:00
|
|
|
tmp=/var/tmp/debian_cd
|
2000-04-09 17:14:17 +00:00
|
|
|
if [ ! -d $tmp ]; then
|
|
|
|
mkdir -p $tmp
|
2000-03-14 03:07:15 -01:00
|
|
|
fi
|
|
|
|
for suba in sun4cdm sun4u; do
|
2000-04-09 17:14:17 +00:00
|
|
|
ln -s ../../dists/$CODENAME/main/disks-$ARCH/current/$suba/linux-a.out \
|
|
|
|
$inst/boot/$suba/linux
|
2000-03-14 03:07:15 -01:00
|
|
|
done
|
|
|
|
|
|
|
|
# Unpack the root tree into the directory. we use the tftp root.tar.gz
|
|
|
|
tar zxf $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/root.tar.gz -C $tmp/
|
2000-04-09 17:14:17 +00:00
|
|
|
cp -a $tmp/debian-sparc-root/. $inst/
|
2000-03-14 03:07:15 -01:00
|
|
|
|
|
|
|
# no longer need this
|
|
|
|
rm -rf $tmp
|
|
|
|
|
|
|
|
# Get rid of some junk
|
2000-03-22 16:42:48 -01:00
|
|
|
rm -f $inst/{boot_message,type.txt}
|