blob: a867ed5324bd49fc3928c925c1d3dc866d359000 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff -uNr lilo-21.7.4.patched/geometry.c lilo-21.7.4.patched1/geometry.c
--- lilo-21.7.4.patched/geometry.c Mon Apr 30 01:59:15 2001
+++ lilo-21.7.4.patched1/geometry.c Mon Apr 30 02:10:48 2001
@@ -425,6 +425,14 @@
geo->start = hdprm.start;
break;
+ case MAJOR_LOOP:
+ geo->device = 0;
+ geo->heads = 2;
+ geo->cylinders = 80;
+ geo->sectors = 18;
+ geo->start = 0;
+ break;
+
default:
die("Sorry, don't know how to handle device 0x%04x",device);
}
diff -uNr lilo-21.7.4.patched/lilo.h lilo-21.7.4.patched1/lilo.h
--- lilo-21.7.4.patched/lilo.h Mon Apr 30 01:57:26 2001
+++ lilo-21.7.4.patched1/lilo.h Mon Apr 30 02:12:11 2001
@@ -32,6 +32,7 @@
#define MAJMIN_RAM 0x101 /* RAM disk */
#define MAJOR_FD 2 /* floppy disks */
#define MAJOR_HD 3 /* IDE-type hard disks */
+#define MAJOR_LOOP 7 /* loop device */
#define MAJOR_SD 8 /* SCSI disks 0-15 */
#define MAJOR_SD2 65 /* SCSI disks 16-31 */
#define MAJOR_SD3 66 /* SCSI disks 32-47 */
|