recipes: libs/libexecinfo: Do not strip references from libraries
[dragora.git] / patches / os-prober / os-prober-mdraidfix.patch
blob33a432dea5bc6f38e4e1be30f5f40d460f3f1ef1
1 Index: os-prober/os-prober
2 ===================================================================
3 --- os-prober.orig/os-prober
4 +++ os-prober/os-prober
5 @@ -64,6 +64,11 @@ partitions () {
6 exit 0
7 fi
9 + # Add MD RAID devices
10 + if [ -f /proc/mdstat ] ; then
11 + awk '/^md/ {printf "/dev/"$1"\n"}' /proc/mdstat
12 + fi
14 # Also detect OSes on LVM volumes (assumes LVM is active)
15 if type lvs >/dev/null 2>&1; then
16 echo "$(LVM_SUPPRESS_FD_WARNINGS=1 log_output lvs --noheadings --separator : -o vg_name,lv_name |
17 @@ -123,7 +128,7 @@ if [ -f /proc/swaps ]; then
19 : >"$OS_PROBER_TMP/raided-map"
20 if [ -f /proc/mdstat ] ; then
21 - grep "^md" /proc/mdstat | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true
22 + grep "^md" /proc/mdstat | cut -d: -f2- | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true
25 for partition in $(partitions); do