#!/bin/bash # # boot-sparc v 1.13 (c) Steve Dunham , Eric # Delaunay , Steve McIntyre # # 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 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 # 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 label=linux initrd=/install/root.bin image[sun4u]=/install/sun4u/linux-a.out label=linux initrd=/install/root.bin __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 \ $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__ Welcome to Debian GNU/Linux 2.2! 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. On most systems, you can go ahead and press 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 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 to boot! __EOF__