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