3
# boot-i386 v 1.13 (c) Steve McIntyre <stevem@chiark.greenend.org.uk>
4
# Released under GPL 31 Mar 1999
5
# See the file COPYING for license details
6
# Released as part of the debian_cd package, not much use standalone
8
# 06-10-99 jjw Added $CODENAME and $CODENAME_STATUS support
10
# Do install stuff for i386, including making bootable CDs
13
# $2 is the temporary CD build dir
21
# Tecra image for disk 2
25
if [ -e 1/dists/$CODENAME/main/disks-$ARCH/current/resc1440tecra.bin ]
28
cp 1/dists/$CODENAME/main/disks-$ARCH/current/resc1440tecra.bin \
30
echo -n "-J -b boot/resc1440tecra.bin -c boot/boot.catalog boot2" \
36
# Disks != 1 and not 2
38
echo -n "-J" > $N.mkisofs_opts
42
# Now we do disk 1 ...
44
echo -n "-J -b boot/resc1440.bin -c boot/boot.catalog boot1" > 1.mkisofs_opts
46
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
47
cp resc*.bin linux root.bin $CDDIR/install )
51
cp $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/resc1440.bin boot1/boot
53
#Extracting tools for disc 1
55
mkdir -p $CDDIR/tools/fips20
56
(cd $CDDIR/tools/fips20; \
57
unzip -Lq $MIRROR/tools/fips20.zip >/dev/null; \
58
rm restorrb source -rf)
61
unzip -Lq $MIRROR/tools/lodlin16.zip >/dev/null; \
62
rm lodlin16/src lodlin16/initrd loadlin16/debian -rf )
64
mkdir $CDDIR/tools/rawrite1
65
(cd $CDDIR/tools/rawrite1; \
66
unzip -Lq $MIRROR/tools/rawrite1.zip >/dev/null)
68
mkdir $CDDIR/tools/rawrite2
69
(cd $CDDIR/tools/rawrite2; \
70
unzip -Lq $MIRROR/tools/rawrite2.zip >/dev/null; \
73
(echo "Tools for DOS :" ; \
74
echo "fips20/ non-destructively shorten a FAT partition" ; \
75
echo "lodlin16/ load Linux kernel from DOS" ;\
76
echo "rawrite1/ rawrite 1.3 : create disks from disk images (*.bin)"; \
77
echo "rawrite2/ rawrite 2.0 : create disks from disk images (*.bin)"; \
78
echo " rawrite 2.0 is much faster, but it locks up on some machines";\
79
) |todos > $CDDIR/tools/README.tools
81
cp $CDDIR/tools/lodlin16/*.exe $CDDIR/install
82
cp $CDDIR/tools/rawrite1/rawrite3.com $CDDIR/install/rw1_3.com
83
cp $CDDIR/tools/rawrite2/rawrite2.exe $CDDIR/install/rw2_0.exe
84
cp $CDDIR/tools/fips*/*.exe $CDDIR/install
86
(echo "@ echo off" ; \
87
echo "rem Flush any write-cached disk blocks before we leave DOS. " ; \
88
echo "smartdrv /c" ; \
89
echo "loadlin.exe linux root=/dev/ram ro initrd=root.bin" ; \
90
) |todos > $CDDIR/install/boot.bat