~tsimonq2/debian-cd/lubuntu-cosmic-changes

« back to all changes in this revision

Viewing changes to tools/boot/boot-i386

  • Committer: Arch Librarian
  • Date: 2005-03-22 00:47:41 UTC
  • Revision ID: Arch-1:debian-cd@arch.ubuntu.com%debian-cd--MAIN--0--patch-29
Initial revision
Author: aph
Date: 1999-11-11 17:10:38 GMT
Initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
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
 
7
#
 
8
# 06-10-99 jjw Added $CODENAME and $CODENAME_STATUS support 
 
9
#
 
10
# Do install stuff for i386, including making bootable CDs
 
11
#
 
12
# $1 is the CD number
 
13
# $2 is the temporary CD build dir
 
14
 
 
15
N=$1
 
16
CDDIR=$2
 
17
BOOTDIR=
 
18
 
 
19
cd $CDDIR/..
 
20
 
 
21
# Tecra image for disk 2
 
22
 
 
23
if [ $N == 2 ]; then
 
24
        :> 2.mkisofs_opts
 
25
        if [ -e 1/dists/$CODENAME/main/disks-$ARCH/current/resc1440tecra.bin ] 
 
26
        then
 
27
                mkdir -p boot2/boot
 
28
                cp 1/dists/$CODENAME/main/disks-$ARCH/current/resc1440tecra.bin \
 
29
                        boot2/boot
 
30
                echo -n "-J -b boot/resc1440tecra.bin -c boot/boot.catalog boot2" \
 
31
                        > 2.mkisofs_opts
 
32
        fi
 
33
        exit 0;
 
34
fi
 
35
 
 
36
# Disks != 1 and not 2
 
37
if [ $N != 1 ]; then 
 
38
        echo -n "-J" > $N.mkisofs_opts
 
39
        exit 0; 
 
40
fi
 
41
 
 
42
# Now we do disk 1 ...
 
43
 
 
44
echo -n "-J -b boot/resc1440.bin -c boot/boot.catalog boot1" > 1.mkisofs_opts
 
45
 
 
46
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
 
47
        cp resc*.bin linux root.bin $CDDIR/install )
 
48
 
 
49
mkdir -p boot1/boot
 
50
 
 
51
cp $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/resc1440.bin boot1/boot
 
52
 
 
53
#Extracting tools for disc 1
 
54
 
 
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)
 
59
 
 
60
(cd $CDDIR/tools; \
 
61
        unzip -Lq $MIRROR/tools/lodlin16.zip >/dev/null; \
 
62
        rm lodlin16/src lodlin16/initrd loadlin16/debian -rf )
 
63
 
 
64
mkdir $CDDIR/tools/rawrite1
 
65
(cd $CDDIR/tools/rawrite1; \
 
66
        unzip -Lq $MIRROR/tools/rawrite1.zip >/dev/null)
 
67
 
 
68
mkdir $CDDIR/tools/rawrite2
 
69
(cd $CDDIR/tools/rawrite2; \
 
70
        unzip -Lq $MIRROR/tools/rawrite2.zip >/dev/null; \
 
71
        rm rawrite2.c )
 
72
 
 
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
 
80
 
 
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
 
85
 
 
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
 
91