summaryrefslogtreecommitdiff
path: root/sys-boot/os-prober/files/os-prober-probe-MD-devices.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-28 00:37:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-28 00:37:32 +0000
commit3f81fd7097ec931ebf6d862622e6d81834483dbb (patch)
treee8381bb314f59122a26bd714f1a14993a31ab8ee /sys-boot/os-prober/files/os-prober-probe-MD-devices.patch
parent351bdb27fc041435144b39e022d9830c140ebd3a (diff)
sys-boot/os-prober : shamelessly take all the patches from openSUSE Factory to make it work
Diffstat (limited to 'sys-boot/os-prober/files/os-prober-probe-MD-devices.patch')
-rw-r--r--sys-boot/os-prober/files/os-prober-probe-MD-devices.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-boot/os-prober/files/os-prober-probe-MD-devices.patch b/sys-boot/os-prober/files/os-prober-probe-MD-devices.patch
new file mode 100644
index 00000000..61122da1
--- /dev/null
+++ b/sys-boot/os-prober/files/os-prober-probe-MD-devices.patch
@@ -0,0 +1,26 @@
+Index: os-prober-1.61/os-prober
+===================================================================
+--- os-prober-1.61.orig/os-prober
++++ os-prober-1.61/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