summaryrefslogtreecommitdiffstats
path: root/shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'shutdown')
-rw-r--r--shutdown10
1 files changed, 1 insertions, 9 deletions
diff --git a/shutdown b/shutdown
index e13e6fb..88ec9ca 100644
--- a/shutdown
+++ b/shutdown
@@ -16,18 +16,10 @@ stop_device() {
read devname <"$1/dm/name"
cryptsetup remove "$devname"
;;
- dm)
+ lvm|dm)
read devname <"$1/dm/name"
dmsetup remove "$devname"
;;
- lvm)
- # disassemble the parent VG
- read devname <"$1/dm/name"
- lvm lvdisplay -c "/dev/mapper/$devname" | {
- IFS=: read _ vgname _
- lvm vgchange --noudevsync -an "$vgname"
- }
- ;;
raid*)
# wait for arrays with external metadata to be marked as
# clean. unfortunately, there isn't a whole lot we can do