~xnox/debian-cd/activate-focal-hwe-kernel

« back to all changes in this revision

Viewing changes to tools/boot/boot-sparc

  • 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-sparc v 1.13 (c) Steve Dunham <dunham@cse.msu.edu>, Eric
 
4
# Delaunay <delaunay@lix.polytechnique.fr>, Steve McIntyre
 
5
# <stevem@chiark.greenend.org.uk>
 
6
# Released under GPL 31 Mar 1999
 
7
# See the file COPYING for license details
 
8
# Released as part of the slink_cd package, not much use standalone
 
9
#
 
10
# Do install stuff for sparc, including making bootable CDs
 
11
 
 
12
N=$1
 
13
CDDIR=$2
 
14
 
 
15
cd $CDDIR/..
 
16
 
 
17
# Disk 1 only
 
18
if [ $N != 1 ]; then
 
19
        :> $N.mkisofs_opts
 
20
        exit 0;
 
21
fi
 
22
 
 
23
echo -n "boot1" > $N.mkisofs_opts
 
24
 
 
25
rm -fr boot1
 
26
 
 
27
# temporary mount point (eg. for silo to create the bootable CD image)
 
28
# only needed for Sparc so far...
 
29
#vecho Checking for temporary mount point for SILO
 
30
mountpoint=/var/tmp/debian_cd.mnt
 
31
if [ -d $mountpoint ]; then
 
32
        umount $mountpoint || true
 
33
else
 
34
        mkdir -p $mountpoint
 
35
fi
 
36
 
 
37
# put the relevant parts of SILO boot loader
 
38
mkdir -p boot1/boot
 
39
cp -p $BOOTDIR/cd.b $BOOTDIR/second.b boot1/boot
 
40
cat - > boot1/boot/silo.conf << __EOF__
 
41
message=!cd1
 
42
timeout=300
 
43
root=/dev/ram
 
44
image[sun4c,sun4d,sun4m]=!cd2
 
45
   label=linux
 
46
   initrd=!cd5
 
47
image[sun4u]=!cd4
 
48
   label=linux
 
49
   initrd=!cd5
 
50
image[sun4c,sun4d,sun4m]=!cd3
 
51
   label=linux-2.2
 
52
   initrd=!cd5
 
53
image[sun4u]=!cd4
 
54
   label=linux-2.2
 
55
   initrd=!cd5
 
56
__EOF__
 
57
 
 
58
# linux kernel & co are fetched directly from the install dir
 
59
# ... put the message banner in boot/debian.txt
 
60
 
 
61
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
 
62
        cp -p linux-a.out linux-2.2.1-sun4u-a.out \
 
63
        linux-2.2.1-a.out root.bin sparc_release_note.txt \
 
64
        $CDDIR/install )
 
65
 
 
66
#echo mount -r -o loop \
 
67
#       $MIRROR/dists/$CODENAME/main/disks-$ARCH/current/resc1440.bin \
 
68
#       $mountpoint
 
69
mount -r -o loop \
 
70
        $MIRROR/dists/$CODENAME/main/disks-$ARCH/current/resc1440.bin \
 
71
        $mountpoint
 
72
cp -p $mountpoint/debian.txt boot1/boot/debian.txt
 
73
umount $mountpoint
 
74
 
 
75