diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-11-15 16:31:27 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-11-24 00:01:34 +0100 |
commit | 4fd768957e6fae85e4019ff7621693e0683eab84 (patch) | |
tree | c6b722edb27911b3b4c5348a069d499acecbf284 | |
parent | 368745497880f5ad4485df002ea7511b34a1c237 (diff) | |
download | mkinitcpio-4fd768957e6fae85e4019ff7621693e0683eab84.tar.gz mkinitcpio-4fd768957e6fae85e4019ff7621693e0683eab84.tar.xz |
shutdown: share dm teardown with lvm
lvm is a chatty bitch and wants to tell all its friends about what it's
doing. Mostly this just goes poorly with udev, but now its lvmetad as
well. Use dmsetup as a shortcut and just tear down the volumes without
worrying about the needless accounting.
Guys? GUYS?!?! GUYS IM TEARING STUFF DOWN NOW!!!11!!!111
Fixes FS#32680.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r-- | shutdown | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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 |