packages: lilo/lilo.spec, lilo/lilo-degraded_arrary.patch (NEW) - Release 6...

matkor matkor at pld-linux.org
Wed Feb 3 13:33:22 CET 2010


Author: matkor                       Date: Wed Feb  3 12:33:22 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Release 6. degraded_arrary.patch by Christian Schoniger for running lilo when first disk on array is failed.

---- Files affected:
packages/lilo:
   lilo.spec (1.155 -> 1.156) , lilo-degraded_arrary.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/lilo/lilo.spec
diff -u packages/lilo/lilo.spec:1.155 packages/lilo/lilo.spec:1.156
--- packages/lilo/lilo.spec:1.155	Sat Dec 12 14:36:56 2009
+++ packages/lilo/lilo.spec	Wed Feb  3 13:33:16 2010
@@ -13,7 +13,7 @@
 Summary(zh_CN.UTF-8):	Linux 和其它系统的引导模块。
 Name:		lilo
 Version:	22.8
-Release:	5
+Release:	6
 Epoch:		2
 License:	BSD
 Group:		Applications/System
@@ -33,6 +33,7 @@
 Patch4:		%{name}-pagesize.patch
 Patch5:		%{name}-dm.patch
 Patch6:		%{name}-devmapper.patch
+Patch7:		%{name}-degraded_arrary.patch
 URL:		http://freshmeat.net/projects/lilo/
 BuildRequires:	bin86 >= 0.15
 BuildRequires:	device-mapper-devel >= 1.01.01
@@ -113,6 +114,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 :> checkit
@@ -181,6 +183,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.156  2010/02/03 12:33:16  matkor
+- Release 6. degraded_arrary.patch by Christian Schoniger for running lilo when first disk on array is failed.
+
 Revision 1.155  2009/12/12 13:36:56  blues
 - it seems lilo is not maintained anymore and there is no official webpage.
 

================================================================
Index: packages/lilo/lilo-degraded_arrary.patch
diff -u /dev/null packages/lilo/lilo-degraded_arrary.patch:1.1
--- /dev/null	Wed Feb  3 13:33:22 2010
+++ packages/lilo/lilo-degraded_arrary.patch	Wed Feb  3 13:33:16 2010
@@ -0,0 +1,24 @@
+# Patch by Christian Schöniger <csc at fes-aes.de>
+#
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522283
+#
+# If the first physical device of a RAID1 array is faulty or removed, lilo fails to install.
+# It doesn't get valid informations about the device (md: RAIDset device 0 = 0x0000) and 
+# didn't resume with the next disk.
+# In "raid.c" lilo should loop through all devices ( for (pass=0; pass < raid_limit; pass++) )
+# to get the disk geometry. But raid_limit is set to md_array_info.active_disks ( 1 ) and
+# getting informations about the faulty or removed device is skipped.
+
+The attached patch really scans all devices to get all required information.
+diff -Nur lilo-22.8/raid.c lilo-22.8/raid.c
+--- lilo-22.8/raid.c	2009-04-01 17:27:06.000000000 +0200
++++ lilo-22.8/raid.c	2009-04-01 17:26:48.000000000 +0200
+@@ -223,7 +223,7 @@
+ 	    if (!force_raid) die("Not all RAID-1 disks are active; use '-H' to install to active disks only");
+ 	    else {
+ 		warn("Partial RAID-1 install on active disks only; booting is not failsafe\n");
+-		raid_limit = md_array_info.active_disks;
++		raid_limit = md_array_info.raid_disks;
+ 	    }
+ 	}
+ 	raid_index = 0;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lilo/lilo.spec?r1=1.155&r2=1.156&f=u



More information about the pld-cvs-commit mailing list