2000-07-06 00:34:45 +00:00
|
|
|
|
B
|
2000-02-19 16:52:52 -01:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
#
|
|
|
|
|
# boot-i386 v 1.13 (c) Steve McIntyre <stevem@chiark.greenend.org.uk>
|
|
|
|
|
# Released under GPL 31 Mar 1999
|
|
|
|
|
# 06-10-99 jjw Added $CODENAME and $CODENAME_STATUS support
|
|
|
|
|
#
|
|
|
|
|
# Heavily hacked by Rapha<68>l Hertzog <hertzog@debian.org> for
|
|
|
|
|
# YACS (the new debian-cd in potato)
|
2000-04-03 22:05:07 +00:00
|
|
|
|
# 12MAR00 updated for current i386 bootdisks --jwest
|
2000-02-19 16:52:52 -01:00
|
|
|
|
#
|
|
|
|
|
# Do install stuff for i386, including making bootable CDs
|
|
|
|
|
#
|
|
|
|
|
# $1 is the CD number
|
|
|
|
|
# $2 is the temporary CD build dir
|
2000-07-06 00:34:45 +00:00
|
|
|
|
# CODENAME1 used temporarly to point to potato boot disks
|
|
|
|
|
# if potato boot disks do not exist 05-JUL-2000 -- jwest
|
2000-02-19 16:52:52 -01:00
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
|
CDDIR=$2
|
|
|
|
|
BOOTDIR=
|
2000-07-06 00:34:45 +00:00
|
|
|
|
|
|
|
|
|
|
2000-04-15 00:42:38 +00:00
|
|
|
|
# set bootdisks to potato for the moment.
|
2000-07-06 00:34:45 +00:00
|
|
|
|
if [ -f $MIRROR/dists/$CODENAME/main/disks-$ARCH/current/images-2.88/compact/rescue.bin ]; then
|
|
|
|
|
echo "Using woody bootdisks"
|
|
|
|
|
CODENAME1=$CODENAME
|
|
|
|
|
else
|
|
|
|
|
echo "Using potato bootdisks"
|
|
|
|
|
CODENAME1=potato
|
|
|
|
|
fi
|
|
|
|
|
|
2000-02-19 16:52:52 -01:00
|
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
|
|
# Compact image for disk 2
|
|
|
|
|
if [ $N == 2 ]; then
|
|
|
|
|
:> 2.mkisofs_opts
|
2000-04-15 00:42:38 +00:00
|
|
|
|
if [ -e $MIRROR/dists/$CODENAME1/main/disks-$ARCH/current/images-2.88/compact/rescue.bin ]
|
2000-02-19 16:52:52 -01:00
|
|
|
|
then
|
|
|
|
|
mkdir -p boot2/boot
|
2000-04-15 00:42:38 +00:00
|
|
|
|
cp $MIRROR/dists/$CODENAME1/main/disks-$ARCH/current/images-2.88/compact/rescue.bin boot2/boot/
|
2000-02-19 16:52:52 -01:00
|
|
|
|
echo -n "-J -b boot/rescue.bin -c boot/boot.catalog boot2" \
|
|
|
|
|
> 2.mkisofs_opts
|
|
|
|
|
fi
|
|
|
|
|
exit 0;
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Disks != 1 and not 2
|
|
|
|
|
if [ $N != 1 ]; then
|
|
|
|
|
echo -n "-J" > $N.mkisofs_opts
|
|
|
|
|
exit 0;
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Now we do disk 1 ...
|
|
|
|
|
# couple of changes for 2.2.x bootdisks 27-dec-99 -- jwest
|
|
|
|
|
|
|
|
|
|
echo -n "-J -b boot/rescue.bin -c boot/boot.catalog boot1" > 1.mkisofs_opts
|
|
|
|
|
|
2000-04-15 00:42:38 +00:00
|
|
|
|
(cd $MIRROR/dists/$CODENAME1/main/disks-$ARCH/current/ ; \
|
2000-04-03 22:05:07 +00:00
|
|
|
|
cp images-1.44/resc*.bin $CDDIR/install ; \
|
2000-02-19 16:52:52 -01:00
|
|
|
|
cp linux $CDDIR/install ; \
|
2000-04-03 22:05:07 +00:00
|
|
|
|
cp images-1.44/root.bin $CDDIR/install )
|
2000-02-19 16:52:52 -01:00
|
|
|
|
|
|
|
|
|
mkdir -p boot1/boot
|
|
|
|
|
|
2000-04-15 00:42:38 +00:00
|
|
|
|
cp $MIRROR/dists/$CODENAME1/main/disks-$ARCH/current/images-2.88/rescue.bin boot1/boot
|
2000-02-19 16:52:52 -01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Extracting tools for disc 1
|
|
|
|
|
|
2000-04-03 22:05:07 +00:00
|
|
|
|
mkdir -p $CDDIR/install/dosutils
|
2000-02-19 16:52:52 -01:00
|
|
|
|
|
2000-04-15 00:42:38 +00:00
|
|
|
|
cp $MIRROR/dists/$CODENAME1/main/disks-$ARCH/current/dosutils/* $CDDIR/install/dosutils/
|
2000-02-19 16:52:52 -01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(echo "Tools for DOS :" ; \
|
2000-04-03 22:05:07 +00:00
|
|
|
|
echo "lodlin/ load Linux kernel from DOS" ;\
|
2000-02-19 16:52:52 -01:00
|
|
|
|
echo "rawrite2/ rawrite 2.0 : create disks from disk images (*.bin)"; \
|
|
|
|
|
) |todos > $CDDIR/tools/README.tools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(echo "@ echo off" ; \
|
|
|
|
|
echo "rem Flush any write-cached disk blocks before we leave DOS. " ; \
|
|
|
|
|
echo "smartdrv /c" ; \
|
|
|
|
|
echo "loadlin.exe linux root=/dev/ram ro initrd=root.bin" ; \
|
|
|
|
|
) |todos > $CDDIR/install/boot.bat
|
|
|
|
|
|