]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid/md-shutdown.sh: check for presence of mdadm
authorHarald Hoyer <harald@redhat.com>
Fri, 8 Jun 2012 10:42:12 +0000 (12:42 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 8 Jun 2012 10:42:12 +0000 (12:42 +0200)
modules.d/90mdraid/md-shutdown.sh

index 1e6c9f6c87d5bfacb699edb9ed34df636155ab26..17eafa5254350850ee63f3ef2222e80247e6a324 100755 (executable)
@@ -18,4 +18,8 @@ _do_md_shutdown() {
     return $ret
 }
 
-_do_md_shutdown $1
+if command -v mdadm >/dev/null; then
+    _do_md_shutdown $1
+else
+    :
+fi