mdraid: add shutdown script
authorHarald Hoyer <harald@redhat.com>
Tue, 31 May 2011 12:47:34 +0000 (14:47 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 31 May 2011 13:50:45 +0000 (15:50 +0200)
modules.d/90mdraid/md-shutdown.sh [new file with mode: 0644]
modules.d/90mdraid/module-setup.sh

diff --git a/modules.d/90mdraid/md-shutdown.sh b/modules.d/90mdraid/md-shutdown.sh
new file mode 100644 (file)
index 0000000..f07f621
--- /dev/null
@@ -0,0 +1,2 @@
+echo "Disassembling mdraid devices."
+mdadm -v --stop --scan
index 5f44777..de7785d 100755 (executable)
@@ -77,5 +77,6 @@ install() {
     inst "$moddir/md_finished.sh" /sbin/md_finished.sh
     inst_hook pre-trigger 30 "$moddir/parse-md.sh"
     inst "$moddir/mdraid-cleanup.sh" /sbin/mdraid-cleanup
+    inst_hook shutdown 30 "$moddir/md-shutdown.sh"
 }