projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2560da6
)
90dm/dm-shutdown.sh: put shutdown in function
author
Harald Hoyer
<harald@redhat.com>
Wed, 20 Jul 2011 17:06:08 +0000
(19:06 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 20 Jul 2011 17:06:08 +0000
(19:06 +0200)
modules.d/90dm/dm-shutdown.sh
patch
|
blob
|
history
diff --git
a/modules.d/90dm/dm-shutdown.sh
b/modules.d/90dm/dm-shutdown.sh
index 026eb26e729654231b392deeee328cda8c9c41e1..3e668f8b1f85ddb3b8a9eef2d412e88d4eab8cd7 100644
(file)
--- a/
modules.d/90dm/dm-shutdown.sh
+++ b/
modules.d/90dm/dm-shutdown.sh
@@
-1,2
+1,15
@@
-echo "Disassembling device-mapper devices"
-dmsetup -v remove_all
+#!/bin/sh
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
+_do_dm_shutdown() {
+ local ret
+ info "Disassembling device-mapper devices"
+ dmsetup -v remove_all
+ ret=$?
+#info "dmsetup ls --tree"
+#dmsetup ls --tree 2>&1 | vinfo
+ return $ret
+}
+
+_do_dm_shutdown
+