diff options
author | librewish | 2021-09-15 20:42:07 +0530 |
---|---|---|
committer | librewish | 2021-09-15 20:42:07 +0530 |
commit | 69cab91b343aef6d0c887aeae6cbc0ddbdcbccc0 (patch) | |
tree | de271501214faa303bf11b33099534696c1852a9 /os-prober-mdraidfix.patch | |
parent | 66857a13aebc4ff4da0f06b027231b18cdefc314 (diff) | |
download | aur-69cab91b343aef6d0c887aeae6cbc0ddbdcbccc0.tar.gz |
revert all patches
Diffstat (limited to 'os-prober-mdraidfix.patch')
-rw-r--r-- | os-prober-mdraidfix.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/os-prober-mdraidfix.patch b/os-prober-mdraidfix.patch new file mode 100644 index 000000000000..33a432dea5bc --- /dev/null +++ b/os-prober-mdraidfix.patch @@ -0,0 +1,25 @@ +Index: os-prober/os-prober +=================================================================== +--- os-prober.orig/os-prober ++++ os-prober/os-prober +@@ -64,6 +64,11 @@ partitions () { + exit 0 + fi + ++ # Add MD RAID devices ++ if [ -f /proc/mdstat ] ; then ++ awk '/^md/ {printf "/dev/"$1"\n"}' /proc/mdstat ++ fi ++ + # Also detect OSes on LVM volumes (assumes LVM is active) + if type lvs >/dev/null 2>&1; then + echo "$(LVM_SUPPRESS_FD_WARNINGS=1 log_output lvs --noheadings --separator : -o vg_name,lv_name | +@@ -123,7 +128,7 @@ if [ -f /proc/swaps ]; then + fi + : >"$OS_PROBER_TMP/raided-map" + if [ -f /proc/mdstat ] ; then +- grep "^md" /proc/mdstat | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true ++ grep "^md" /proc/mdstat | cut -d: -f2- | parse_proc_mdstat >"$OS_PROBER_TMP/raided-map" || true + fi + + for partition in $(partitions); do |