forked from pool/os-prober
27 lines
782 B
Diff
27 lines
782 B
Diff
|
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
|