Hello community,

here is the log from the commit of package os-prober for openSUSE:Factory 
checked in at 2013-03-25 20:40:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/os-prober (Old)
 and      /work/SRC/openSUSE:Factory/.os-prober.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "os-prober", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/os-prober/os-prober.changes      2013-03-04 
17:29:33.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.os-prober.new/os-prober.changes 2013-03-25 
20:41:46.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Mar 22 17:29:32 UTC 2013 - [email protected]
+
+- add os-prober-probe-MD-devices.patch (bnc#811006)
+  * probe also Linux MD devices
+
+-------------------------------------------------------------------

New:
----
  os-prober-probe-MD-devices.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ os-prober.spec ++++++
--- /var/tmp/diff_new_pack.TMVd3G/_old  2013-03-25 20:41:47.000000000 +0100
+++ /var/tmp/diff_new_pack.TMVd3G/_new  2013-03-25 20:41:47.000000000 +0100
@@ -44,6 +44,8 @@
 Patch5:         os-prober-1.49-grub2-mount.patch
 # PATCH-FIX-OPENSUSE: Detect distributions which moved /lib to /usr/lib
 Patch6:         os-prober-usr_lib-detection.patch
+# PATCH-FIX-OPENSUSE: Probe also unpartitioned Linux MD devices (bnc#811006)
+Patch7:         os-prober-probe-MD-devices.patch
 
 Requires:       /bin/grep
 Requires:       /bin/sed
@@ -69,6 +71,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 make %{?_smp_mflags} CC="%__cc" CFLAGS="%{optflags}"

++++++ os-prober-probe-MD-devices.patch ++++++
Index: os-prober/os-prober
===================================================================
--- os-prober.orig/os-prober
+++ os-prober/os-prober
@@ -39,6 +39,11 @@ partitions () {
                        fi
                done
 
+               # Add Linux MD unpartioned devices. Linux MD partitions are 
already covered above
+               [ -f /proc/mdstat ] && grep '^md' /proc/mdstat | while read md 
line; do
+                       [ -e "/dev/$md" ] && echo "/dev/$md"
+               done
+
                # Add Serial ATA RAID devices
                if type dmraid >/dev/null 2>&1 && \
                   dmraid -s -c >/dev/null 2>&1; then
@@ -79,7 +84,8 @@ parse_proc_mdstat () {
                        udevadm info "$@"
                }
        fi
-       while read line; do
+       # Only add MD slaves to the list
+       while read md line; do
                for word in $line; do
                        dev="${word%%[*}"
                        # TODO: factor this out to something in di-utils if
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to