#!/bin/sh
#-----------------------------------------------------------------------------
# system-devices-lv-show - show logical volumes
# Copyright (c) 2001-2013 The Eisfair Team <team@eisfair.org>
#-----------------------------------------------------------------------------
. /var/install/include/anykey
. /var/install/include/mecho
. /var/install/include/techo

modprobe dm_mod

echo "List logical volumes"
techo begin 31 32 8 9r
techo row --info "LV" --info "VG" --info "Attr" --info "VSize"
echo "================================================================================"
lvs|while read line
do
    set -- $line
    if [ "$1" != "LV" ] ; then
        techo row $1 $2 $3 $4
    fi
done

echo
anykey
exit 0
