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

83 lines
2.3 KiB
Plaintext
Raw Normal View History

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
set -e
1999-11-11 16:10:37 -01:00
N=$1
CDDIR=$2
cd $CDDIR/..
# Disk 1 only
if [ $N != 1 ]; then
:> $N.mkisofs_opts
exit 0;
fi
echo -n "1/boot" > $N.mkisofs_opts
1999-11-11 16:10:37 -01:00
# put the relevant parts of SILO boot loader
mkdir -p $CDDIR/install
ln -sf install $CDDIR/etc
ln -sf install $CDDIR/boot
cp -p $BOOTDIR/cd.b $BOOTDIR/second.b $CDDIR/install
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
1999-11-11 16:10:37 -01:00
label=linux
initrd=/install/root.bin
image[sun4u]=/install/sun4u/linux-a.out
1999-11-11 16:10:37 -01:00
label=linux
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
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
cp -pP sun4cdm/linux-a.out sun4u/linux-a.out \
1999-11-11 16:10:37 -01:00
$CDDIR/install )
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
cp -p images-1.44/root.bin $CDDIR/install )
cat - > $CDDIR/install/debian.txt << __EOF__
1999-11-11 16:10:37 -01:00
Welcome to Debian GNU/Linux 2.2!
1999-11-11 16:10:37 -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
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__