Blame SOURCES/os-prober-mdraidfix.patch

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