]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90mdraid/mdraid_start.sh: fix path to md sysfs
authorHarald Hoyer <harald@redhat.com>
Tue, 4 Oct 2011 11:06:33 +0000 (13:06 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 4 Oct 2011 11:06:33 +0000 (13:06 +0200)
modules.d/90mdraid/mdraid_start.sh

index f79f16ebf465487912e755e3eeab5a3e945cda29..f4b7ad0c299f8e2eb6e684369b7b8e3ef4e76d7c 100755 (executable)
@@ -14,7 +14,7 @@ _md_force_run() {
         strstr "$_udevinfo" "MD_LEVEL=container" && continue
         strstr "$_udevinfo" "DEVTYPE=partition" && continue
 
-        _path_s="$(udevadm info -q path -n "$md")/md/array_state"
+        _path_s="/sys/$(udevadm info -q path -n "$md")/md/array_state"
         [ ! -r "$_path_s" ] && continue
 
         # inactive ?