summaryrefslogtreecommitdiff
path: root/scripts/local-top/lvm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/local-top/lvm')
-rw-r--r--scripts/local-top/lvm4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/local-top/lvm b/scripts/local-top/lvm
index 9307f55..7ac81e6 100644
--- a/scripts/local-top/lvm
+++ b/scripts/local-top/lvm
@@ -28,8 +28,10 @@ esac
modprobe -q dm-mod
-# Cope with -'s in the volume group and node names.
+# Split volume group from logical volume.
vg=$(echo ${vg} | sed -e 's#\(.*\)\([^-]\)-[^-].*#\1\2#')
+# Reduce padded --'s to -'s
+vg=$(echo ${vg} | sed -e 's#--#-#g')
vgchange -ay ${vg}