debian-cd-clone/tools/boot/woody/boot-sparc

65 lines
1.5 KiB
Plaintext
Raw Normal View History

2001-09-02 03:48:43 +00:00
#!/bin/bash -e
#
# boot-sparc v 2.00 (c) Steve Dunham <dunham@cse.msu.edu>, Eric
# 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>
# 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
. $BASEDIR/tools/boot/$CODENAME/common.sh
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;
fi
install_languages $CDDIR
2001-09-02 03:48:43 +00:00
echo "-B boot/second.b boot1" > $N.mkisofs_opts
rm -rf boot1
2001-09-02 03:48:43 +00:00
inst=boot1
2001-09-02 03:48:43 +00:00
# Setup directories
mkdir -p $inst/{boot/sun4{u,cdm},etc}
silo_deb=`ls $MIRROR/pool/main/s/silo/silo_*.deb | tail -1`
# put the relevant parts of SILO boot loader
(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
2001-09-02 04:14:24 +00:00
cp -f -p $BASEDIR/data/sparc/etc/{boot-msg.txt,debian.txt,silo.conf} \
2001-09-02 03:48:43 +00:00
$inst/etc/
2001-09-02 03:48:43 +00:00
tmp=$TDIR/sparc-root
rm -rf $tmp
mkdir -p $tmp
2001-09-02 03:48:43 +00:00
for suba in sun4cdm sun4u; do
ln -s ../../dists/$CODENAME/main/disks-$ARCH/current/$suba/linux-a.out \
$inst/boot/$suba/linux
done
2001-09-02 03:48:43 +00:00
# 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/
cp -f -a $tmp/debian-sparc-root/. $inst/
2001-09-02 03:48:43 +00:00
# no longer need this
rm -rf $tmp
2001-09-02 03:48:43 +00:00
# Get rid of some junk
rm -f $inst/{boot_message,type.txt}