diff options
author | librewish | 2021-09-12 20:30:34 +0530 |
---|---|---|
committer | librewish | 2021-09-12 20:30:34 +0530 |
commit | 752ceb29fd23a6c4cffbca9f65adad1cb53f4872 (patch) | |
tree | a41fd50e983356d81f724b91463f8855bae07d9a /os-prober-mdraidfix.patch | |
parent | 5271f23d8ac140f2db82697b645c38a41ccc78ac (diff) | |
download | aur-752ceb29fd23a6c4cffbca9f65adad1cb53f4872.tar.gz |
add patches from opensuse
Diffstat (limited to 'os-prober-mdraidfix.patch')
-rw-r--r-- | os-prober-mdraidfix.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/os-prober-mdraidfix.patch b/os-prober-mdraidfix.patch deleted file mode 100644 index 33a432dea5b..00000000000 --- a/os-prober-mdraidfix.patch +++ /dev/null @@ -1,25 +0,0 @@ -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 |