2001-09-02 03:48:43 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
#
|
|
|
|
# boot-sparc v 2.00 (c) Steve Dunham <dunham@cse.msu.edu>, Eric
|
2000-02-19 16:52:52 -01:00
|
|
|
# Delaunay <delaunay@lix.polytechnique.fr>, Steve McIntyre
|
2001-09-02 03:48:43 +00:00
|
|
|
# <stevem@chiark.greenend.org.uk>, Ben Collins <bcollins@debian.org>
|
2000-02-19 16:52:52 -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
|
|
|
|
#
|
2001-09-02 03:48:43 +00:00
|
|
|
# Do install stuff for sparc, including making first CD bootable
|
2000-02-19 16:52:52 -01:00
|
|
|
|
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
|
|
|
|
CDDIR=$2
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
2001-09-02 03:48:43 +00:00
|
|
|
:> $N.mkisofs_opts
|
|
|
|
|
|
|
|
# Only disc 1* bootable
|
|
|
|
if [ $N != 1 -a $N != 1_NONUS ]; then
|
|
|
|
exit 0;
|
2000-02-19 16:52:52 -01:00
|
|
|
fi
|
|
|
|
|
2002-03-25 09:03:53 -01:00
|
|
|
install_languages $CDDIR
|
|
|
|
|
2002-06-04 20:04:02 +00:00
|
|
|
echo "-silo-boot boot/second.b -s /boot/silo.conf -S boot/cd.b boot1" > $N.mkisofs_opts
|
2001-09-02 03:48:43 +00:00
|
|
|
rm -rf boot1
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-09-02 03:48:43 +00:00
|
|
|
inst=boot1
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-09-02 03:48:43 +00:00
|
|
|
# Setup directories
|
2002-04-26 16:32:50 +00:00
|
|
|
mkdir -p $inst/boot
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-09-02 04:03:16 +00:00
|
|
|
silo_deb=`ls $MIRROR/pool/main/s/silo/silo_*.deb | tail -1`
|
2000-02-19 16:52:52 -01:00
|
|
|
# put the relevant parts of SILO boot loader
|
2001-09-02 04:03:16 +00:00
|
|
|
(ar p $silo_deb data.tar.gz | \
|
2001-09-02 03:48:43 +00:00
|
|
|
tar zxf - -C $inst/ ./boot/{cd,second}.b)
|
|
|
|
|
|
|
|
# Some custom etc files
|
2002-04-26 16:32:50 +00:00
|
|
|
cp -f -p $BASEDIR/data/sparc/etc/{debian.txt,silo.conf} \
|
|
|
|
$inst/boot/
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2002-06-04 20:04:02 +00:00
|
|
|
cp CD1/dists/$CODENAME/main/disks-$ARCH/current/sun4cdm/vmlinuz \
|
2002-04-26 16:32:50 +00:00
|
|
|
$inst/boot/sparc32.gz
|
2002-05-03 20:25:53 +00:00
|
|
|
# Sparc64 kernel is so big, that uncompressing it corrupts SILO memory, so
|
|
|
|
# uncompress it before hand.
|
2002-06-04 20:04:02 +00:00
|
|
|
zcat CD1/dists/$CODENAME/main/disks-$ARCH/current/sun4u/vmlinuz \
|
|
|
|
>$inst/boot/sparc64
|