Blame SOURCES/os-prober-mdraidfix.patch

c62eab
diff -up os-prober-1.55/os-prober.mdraidfix os-prober-1.55/os-prober
c62eab
--- os-prober-1.55/os-prober.mdraidfix	2012-05-20 05:31:38.000000000 +0430
c62eab
+++ os-prober-1.55/os-prober	2012-08-27 23:13:35.961274472 +0430
c62eab
@@ -57,6 +57,11 @@ partitions () {
c62eab
 		exit 0
c62eab
 	fi
c62eab
 
c62eab
+	# Add MD RAID devices
c62eab
+	if [ -f /proc/mdstat ] ; then
c62eab
+		awk '/^md/ {printf "/dev/"$1"\n"}' /proc/mdstat
c62eab
+	fi
c62eab
+
c62eab
 	# Also detect OSes on LVM volumes (assumes LVM is active)
c62eab
 	if type lvs >/dev/null 2>&1; then
c62eab
 		echo "$(LVM_SUPPRESS_FD_WARNINGS=1 log_output lvs --noheadings --separator : -o vg_name,lv_name |
c62eab
@@ -116,7 +121,7 @@ if [ -f /proc/swaps ]; then
c62eab
 fi
c62eab
 : >"$OS_PROBER_TMP/raided-map"
c62eab
 if [ -f /proc/mdstat ] ; then
c62eab
-	grep "^md" /proc/mdstat | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true
c62eab
+	grep "^md" /proc/mdstat | cut -d: -f2- | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true
c62eab
 fi
c62eab
 
c62eab
 for partition in $(partitions); do