1999-11-11 16:10:37 -01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# boot-sparc v 1.13 (c) Steve Dunham <dunham@cse.msu.edu>, Eric
|
|
|
|
# Delaunay <delaunay@lix.polytechnique.fr>, Steve McIntyre
|
|
|
|
# <stevem@chiark.greenend.org.uk>
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# Do install stuff for sparc, including making bootable CDs
|
2000-03-12 15:27:26 -01:00
|
|
|
# Revisions:
|
|
|
|
# 12-MAR-00 changes for new boot-disk orginazation --jwest
|
|
|
|
|
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-12 21:30:06 -01:00
|
|
|
# move all the bootdisks to /install
|
1999-11-11 16:10:37 -01:00
|
|
|
# put the relevant parts of SILO boot loader
|
2000-03-09 20:06:03 -01:00
|
|
|
mkdir -p $CDDIR/install
|
|
|
|
ln -sf install $CDDIR/etc
|
2000-03-12 21:30:06 -01:00
|
|
|
#ln -sf install $CDDIR/boot
|
|
|
|
mkdir -p boot1/boot
|
2000-03-12 15:27:26 -01:00
|
|
|
|
|
|
|
BOOTDIR=1/dists/$CODENAME/main/disks-$ARCH/current/
|
|
|
|
|
2000-03-12 21:30:06 -01:00
|
|
|
|
|
|
|
# Disks != 1 and not 2
|
|
|
|
if [ $N != 1 ]; then
|
|
|
|
echo -n "-J" > $N.mkisofs_opts
|
2000-03-12 23:35:26 -01:00
|
|
|
rm -r $CDDIR/doc #remove doc dir on #2,#3,#4
|
2000-03-12 21:30:06 -01:00
|
|
|
exit 0;
|
|
|
|
fi
|
2000-03-12 23:35:26 -01:00
|
|
|
|
|
|
|
# make a copy of the boot disks in the /install dir
|
2000-03-13 04:47:34 -01:00
|
|
|
####jim is this necessary???
|
|
|
|
#cp -pr $BOOTDIR/* $CDDIR/install
|
2000-03-12 23:35:26 -01:00
|
|
|
# remove the /install/doc directory as it is reduntant to /doc
|
2000-03-13 04:47:34 -01:00
|
|
|
#rm -r $CDDIR/install/doc
|
2000-03-12 23:35:26 -01:00
|
|
|
|
2000-03-12 21:30:06 -01:00
|
|
|
echo -n "-J -b boot/rescue.bin -c boot/boot.catalog boot1" > 1.mkisofs_opts
|
|
|
|
|
|
|
|
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
|
|
|
|
cp sun4cdm/images-1.44/resc*.bin $CDDIR/install ; \
|
2000-03-13 04:47:34 -01:00
|
|
|
cp -ar sun4cdm/* $CDDIR/install ; \
|
2000-03-12 21:30:06 -01:00
|
|
|
cp images-1.44/root.bin $CDDIR/install )
|
|
|
|
|
|
|
|
mkdir -p boot1/boot
|
|
|
|
|
|
|
|
cp $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/sun4cdm/images-1.44/rescue.bin boot1/boot
|
|
|
|
|
|
|
|
|
2000-03-12 15:27:26 -01:00
|
|
|
|
2000-03-09 20:06:03 -01:00
|
|
|
cat - > $CDDIR/install/silo.conf << __EOF__
|
|
|
|
partition=1
|
|
|
|
message=/install/debian.txt
|
|
|
|
timeout=600
|
|
|
|
read-write
|
|
|
|
image[sun4c,sun4d,sun4m]=/install/sun4cdm/linux-a.out
|
2000-03-12 15:27:26 -01:00
|
|
|
label=linux-cdm
|
|
|
|
initrd=/install/root.bin
|
|
|
|
image[sun4u]=/install/sun4u/linux-a.out
|
|
|
|
label=linux-4u
|
2000-03-09 20:06:03 -01:00
|
|
|
initrd=/install/root.bin
|
|
|
|
image[sun4u]=/install/sun4u/linux-a.out
|
2000-03-12 15:27:26 -01:00
|
|
|
label=linux-4u
|
2000-03-09 20:06:03 -01:00
|
|
|
initrd=/install/root.bin
|
1999-11-11 16:10:37 -01:00
|
|
|
__EOF__
|
|
|
|
|
|
|
|
# linux kernel & co are fetched directly from the install dir
|
|
|
|
# ... put the message banner in boot/debian.txt
|
|
|
|
|
2000-03-12 15:27:26 -01:00
|
|
|
#CHANGE!!! Dont beleive the below is necessary 12-Mar-00 --jwest
|
|
|
|
#(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
|
|
|
|
# cp -pr sun4cdm/* $CDDIR/install )
|
|
|
|
#(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
|
|
|
|
# cp -pr images-1.44/* $CDDIR/install )
|
2000-03-09 20:06:03 -01:00
|
|
|
|
|
|
|
|
|
|
|
cat - > $CDDIR/install/debian.txt << __EOF__
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-03-09 20:06:03 -01:00
|
|
|
Welcome to Debian GNU/Linux 2.2!
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-03-09 20:06:03 -01:00
|
|
|
This is the Debian Rescue CD. Keep it once you have installed
|
|
|
|
your system, as you can boot from it to repair the system on your
|
|
|
|
hard disk if that ever becomes necessary.
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-03-09 20:06:03 -01:00
|
|
|
On most systems, you can go ahead and press <ENTER> to begin
|
|
|
|
installation. You will probably want to try doing that before you try
|
|
|
|
anything else. If you run into trouble, or if you already have
|
|
|
|
questions, press the <TAB> key to list alternative boot options or
|
|
|
|
enter the "help" keyword to show a message about SILO boot commands.
|
|
|
|
|
|
|
|
WARNING: You should completely back up all of your hard disks before
|
|
|
|
proceeding. The installation procedure can completely and
|
|
|
|
irreversibly erase them! If you haven't made backups yet, remove
|
|
|
|
the rescue CD from the drive and enter the "halt" keyword
|
|
|
|
to get back to the monitor.
|
|
|
|
|
|
|
|
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
|
|
|
|
permitted by applicable law.
|
|
|
|
|
|
|
|
This CD uses Linux 2.2.14
|
|
|
|
|
|
|
|
Press <ENTER> to boot!
|
|
|
|
__EOF__
|