]> git.pld-linux.org Git - packages/lilo.git/commitdiff
- Release 6. degraded_arrary.patch by Christian Schoniger for running lilo when first... auto/th/lilo-22_8-6
authorMateusz Korniak <matkor@pld-linux.org>
Wed, 3 Feb 2010 12:33:16 +0000 (12:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lilo-degraded_arrary.patch -> 1.1
    lilo.spec -> 1.156

lilo-degraded_arrary.patch [new file with mode: 0644]
lilo.spec

diff --git a/lilo-degraded_arrary.patch b/lilo-degraded_arrary.patch
new file mode 100644 (file)
index 0000000..517a0f9
--- /dev/null
@@ -0,0 +1,24 @@
+# Patch by Christian Schöniger <csc@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;
index 1e49054a48078df5d3aa62af76440cd0bc560795..9a20f2bd8814ba44db3a5c9abf0b5ec4615d0683 100644 (file)
--- a/lilo.spec
+++ b/lilo.spec
@@ -12,7 +12,7 @@ Summary(uk.UTF-8):    Завантажувач для Linux та інших опе
 Summary(zh_CN.UTF-8):  Linux 和其它系统的引导模块。
 Name:          lilo
 Version:       22.8
-Release:       5
+Release:       6
 Epoch:         2
 License:       BSD
 Group:         Applications/System
@@ -32,6 +32,7 @@ Patch3:               %{name}-doc-fallback.patch
 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
@@ -112,6 +113,7 @@ Wsparcie lilo dla rc-boot.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 :> checkit
This page took 0.070889 seconds and 4 git commands to generate.