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

diff --git a/modules.d/90dm/dm-shutdown.sh b/modules.d/90dm/dm-shutdown.sh
new file mode 100644 (file)
index 0000000..026eb26
--- /dev/null
@@ -0,0 +1,2 @@
+echo "Disassembling device-mapper devices"
+dmsetup -v remove_all
index 952163a..c924ec7 100755 (executable)
@@ -26,5 +26,7 @@ install() {
     # files, but provides the one below:
     inst_rules 64-device-mapper.rules
     inst_rules "$moddir/11-dm.rules"
+
+    inst_hook shutdown 30 "$moddir/dm-shutdown.sh"
 }