Blame SOURCES/os-prober-mdraidfix.patch

03b69a
Index: os-prober/os-prober
03b69a
===================================================================
03b69a
--- os-prober.orig/os-prober
03b69a
+++ os-prober/os-prober
03b69a
@@ -64,6 +64,11 @@ partitions () {
03b69a
 		exit 0
03b69a
 	fi
03b69a
 
03b69a
+	# Add MD RAID devices
03b69a
+	if [ -f /proc/mdstat ] ; then
03b69a
+		awk '/^md/ {printf "/dev/"$1"\n"}' /proc/mdstat
03b69a
+	fi
03b69a
+
03b69a
 	# Also detect OSes on LVM volumes (assumes LVM is active)
03b69a
 	if type lvs >/dev/null 2>&1; then
03b69a
 		echo "$(LVM_SUPPRESS_FD_WARNINGS=1 log_output lvs --noheadings --separator : -o vg_name,lv_name |
03b69a
@@ -123,7 +128,7 @@ if [ -f /proc/swaps ]; then
03b69a
 fi
03b69a
 : >"$OS_PROBER_TMP/raided-map"
03b69a
 if [ -f /proc/mdstat ] ; then
03b69a
-	grep "^md" /proc/mdstat | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true
03b69a
+	grep "^md" /proc/mdstat | cut -d: -f2- | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true
03b69a
 fi
03b69a
 
03b69a
 for partition in $(partitions); do