X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=07c33444152b8016d92fdafe151e6c52c807d8a1;hp=06e5168358d358b712bbaf8f00c0044879c9a43a;hb=b5997c2a11f6dbf369e0e538862202992ebe88a2;hpb=377bb3210be7273ae7d280d804b2bdaeb2971448;ds=sidebyside diff --git a/autoconfig.functions b/autoconfig.functions index 06e5168..07c3344 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -2097,7 +2097,7 @@ config_lvm(){ if ! [ -x /sbin/lvm -a -x /etc/init.d/lvm2 -a -x /sbin/lvdisplay ] ; then eerror "LVM not available, can not execute it." ; eend 1 else - if lvdisplay 1>/dev/null 2>&1 ; then + if lvdisplay 2>&1 | grep -v 'No volume groups found' 1>/dev/null 2>&1 ; then einfo "You seem to have logical volumes (LVM) on your system." eindent einfo "Just run 'Start lvm2' to activate them or boot using 'lvm' as bootoption for autostart."