Blame 0065-90mdraid-mdraid_start.sh-fix-path-to-md-sysfs.patch

Harald Hoyer 55891e
From e0e9221e23f783ce670349df52da46bf6dc05c14 Mon Sep 17 00:00:00 2001
Harald Hoyer 55891e
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 55891e
Date: Tue, 4 Oct 2011 13:06:33 +0200
Harald Hoyer 55891e
Subject: [PATCH] 90mdraid/mdraid_start.sh: fix path to md sysfs
Harald Hoyer 55891e
Harald Hoyer 55891e
---
Harald Hoyer 55891e
 modules.d/90mdraid/mdraid_start.sh |    2 +-
Harald Hoyer 55891e
 1 files changed, 1 insertions(+), 1 deletions(-)
Harald Hoyer 55891e
Harald Hoyer 55891e
diff --git a/modules.d/90mdraid/mdraid_start.sh b/modules.d/90mdraid/mdraid_start.sh
Harald Hoyer 55891e
index f79f16e..f4b7ad0 100755
Harald Hoyer 55891e
--- a/modules.d/90mdraid/mdraid_start.sh
Harald Hoyer 55891e
+++ b/modules.d/90mdraid/mdraid_start.sh
Harald Hoyer 55891e
@@ -14,7 +14,7 @@ _md_force_run() {
Harald Hoyer 55891e
         strstr "$_udevinfo" "MD_LEVEL=container" && continue
Harald Hoyer 55891e
         strstr "$_udevinfo" "DEVTYPE=partition" && continue
Harald Hoyer 55891e
 
Harald Hoyer 55891e
-        _path_s="$(udevadm info -q path -n "$md")/md/array_state"
Harald Hoyer 55891e
+        _path_s="/sys/$(udevadm info -q path -n "$md")/md/array_state"
Harald Hoyer 55891e
         [ ! -r "$_path_s" ] && continue
Harald Hoyer 55891e
 
Harald Hoyer 55891e
         # inactive ?