Add externs to avoid multiple definitions, and then add missing definitions.
[rrq/maintain_lilo.git] / sample / lilo.old-special.conf
1 #
2 #  lilo.sample.conf
3 #
4 #       This example has been updated to version 22.5.5 and beyond
5 #
6 # The boot record is installed on the second primary partition
7 # Which will have to be marked active to get to it.
8
9 boot = /dev/hda2
10
11 #
12 # The map file is placed in the default location, but
13 # we change the name to '.map', since it is a critical system file.
14 # DON'T use "System.map" -- you'll overwrite the kernel loader map.
15 # lilo CREATES the (sector) map file of direct sector addresses which
16 # are independent of any filesystem.
17
18 map = /boot/.map
19
20 #
21 # LBA32 is needed to address all sectors of the 27Gb disks
22 # on this system
23
24 lba32
25
26 #
27 # We ask for the MENU interface (works on VGA, EGA, and MDA video cards)
28 # by installing this boot loader:
29
30 install = menu          # syntax since version 22.3 (see the man pages)
31 #install = /boot/boot-menu.b    # outdated syntax, but selection is based on
32                                 # the substring "menu", so it still works
33
34 #
35 # and specify the color scheme and menu title
36 # for the computer named DESDEMONA
37
38 menu-scheme=wm:rw:wm:Wm
39 menu-title=" DESDEMONA (2.4.2) boot "
40
41 #
42 # We always want to see the prompt with a 15 second timeout
43
44 prompt
45 timeout=150
46
47
48 # If a LOCKed command line, or pre-stored command line is present
49 # delay 3 seconds to allow cancellation with the Shift key (or Alt, or Ctrl)
50
51 delay=30
52
53 #
54 # All filesystems will initially be mounted 'read-only'
55
56 read-only
57
58 #
59 # Booting may be performed from the serial interface 
60
61 serial=0,9600
62
63 #
64 # All other= sections use this chain loader (version 22)
65
66 #loader=/boot/chain.b           # outdated; there is now only one chain
67                                 # loader, so this line is not really needed
68
69 # This system is complicated -- leave no doubt about how the
70 # BIOS has assigned the device codes:
71
72 disk=/dev/hda   bios=0x80
73 disk=/dev/hdb   bios=0x81
74 disk=/dev/hdc   bios=0x82
75 disk=/dev/sda   bios=0x83
76 disk=/dev/sdb   inaccessible            # has no device code, so mark it
77                                         # off-limits
78 disk=/dev/fd0   bios=0x00               # got a 2.88Mb floppy, so specify all
79         sectors=36  heads=2  cylinders=80
80
81 # Version 22.5.6 and later will likely get the drive assignment correct, so
82 # the above really applies to earlier LILO versions.  
83
84 #################################################
85 # end of sample-lilo.conf Global section        #
86 #################################################
87
88 #
89 # The first image is the default image
90
91 image=/dd/boot/vmlinuz-2.4.2
92         label=2.4.2
93         root=current
94         append="reboot=warm"
95
96 #
97 # Yes, we run Windoze, too
98
99 other=/dev/hda1
100         label=win_2k
101         table=/dev/hda
102 #       master-boot             # not really needed, since this drive is
103                                 # already 0x80, but "master-boot" is a good
104                                 # idea to put on any "other=" that must
105                                 # boot from the "C:" drive.
106
107
108 #
109 # This is the backup kernel from RedHat
110
111 image=/dd/boot/vmlinuz-2.2.14-5.0
112         label=RH62
113         initrd=/dd/boot/initrd-2.2.14-5.0.img
114         append="reboot=warm"
115         root=/dev/hda7
116
117 #
118 # The D: drive has a Win98 installation
119 # Fake booting from drive C: with the map-drive options
120
121 other=/dev/hdb1
122         label=win_98
123 #       map-drive=0x80 to=0x81          # obsolete, but still allowed
124 #       map-drive=0x81 to=0x80          #
125         boot-as = 0x80                  # 22.5.5 syntax
126         
127 #
128 # This is an experimental, small kernel
129
130 image=/dd/boot/zImage-2.2.14
131         label=zI-2.2.14
132         root=/dev/hda7
133
134 #
135 # And a route back to the Master Boot Record, if wanted
136
137 other=/dev/hda                  # route back to the master LILO boot menu
138         label=MBR               # on the Master Boot Record
139         master-boot             # guarantee that it boots as 0x80
140
141 #
142 # Allow us to boot the floppy drive from the main LILO boot menu
143
144 other=/dev/fd0                  # no "label=", so it appears as "fd0"
145         master-boot             # it boots as the master floppy (0x00)
146         unsafe                  # and it may not be inserted, so do not 
147                                 # try to read the boot sector during LILO
148                                 # installation
149
150 #################################################
151 # end of sample-lilo.conf                       #
152 #################################################