[readonly/geninitrd/devel: 191/334] Fix LVMVERSION detection when lvm1 tools are in use.
draenog
draenog at pld-linux.org
Sat Nov 2 19:27:34 CET 2013
commit dcd86a8d1654d0bddc9dcf02fd73533cf3749362
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Mar 31 17:20:25 2004 +0000
Fix LVMVERSION detection when lvm1 tools are in use.
svn-id: @3846
geninitrd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/geninitrd b/geninitrd
index ba2bd84..0d97ecb 100755
--- a/geninitrd
+++ b/geninitrd
@@ -584,7 +584,7 @@ find_modules_for() {
exit 1
fi
if [ -z "$LVMVERSION" ] ; then
- LVMVERSION=$(/sbin/initrd-lvm vgchange --version 2>/dev/null|head -n 1|awk '{gsub("vgdisplay: Logical Volume Manager ",""); gsub("LVM version: ",""); gsub(/\..*/,"");print $1}')
+ LVMVERSION=$(/sbin/initrd-lvm vgchange --version 2>/dev/null|head -n 1|awk '{gsub("vgchange: Logical Volume Manager ",NIL); gsub("LVM version: ",NIL); gsub(/\..*/,NIL); print $1}')
if [ -z "$LVMVERSION" ] ; then
echo "ERROR: Can't determine LVM tools version. Please set LVMVERSION" >&2
echo "and rerun $0." >&2
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11
More information about the pld-cvs-commit
mailing list