[readonly/geninitrd/devel: 194/334] Change --lvmversion to --lvmtoolsversion (same with LVMVERSION->LVMTOOLSVERSION) to avoid confusion.
draenog
draenog at pld-linux.org
Sat Nov 2 19:27:50 CET 2013
commit e0c502bb75554f182ec248ea3268b2bab5cd61d1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Mar 31 17:47:22 2004 +0000
Change --lvmversion to --lvmtoolsversion (same with LVMVERSION->LVMTOOLSVERSION) to avoid confusion.
svn-id: @3849
geninitrd | 26 +++++++++++++-------------
geninitrd.8.xml | 4 ++--
2 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 33f6e2f..68820d3 100755
--- a/geninitrd
+++ b/geninitrd
@@ -44,7 +44,7 @@ usage () {
echo " [--with=<module>] [--image-version] [--fstab=<fstab>] [--nocompress]"
echo " [--initrdfs=rom|ext2|cram] [--modules-conf=<modules.conf>]"
echo " [--with-raidstart] [--without-raidstart] [--with-insmod-static]"
- echo " [--without-bootsplash] [--lvmversion=1|2]"
+ echo " [--without-bootsplash] [--lvmtoolsversion=1|2]"
echo " <initrd-image> <kernel-version>"
echo " (ex: `basename $0` /boot/initrd-2.2.5-15.img 2.2.5-15)"
exit 1
@@ -591,10 +591,10 @@ find_modules_for() {
echo "Please install lvm(2) and lvm(2)-initrd package and rerun $0." >&2
exit 1
fi
- if [ -z "$LVMVERSION" ] ; then
- 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
+ if [ -z "$LVMTOOLSVERSION" ] ; then
+ LVMTOOLSVERSION=$(/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 "$LVMTOOLSVERSION" ] ; then
+ echo "ERROR: Can't determine LVM tools version. Please set LVMTOOLSVERSION" >&2
echo "and rerun $0." >&2
exit 1
fi
@@ -612,13 +612,13 @@ find_modules_for() {
echo "You can try to set PVDEVICES in /etc/sysconfig/geninitrd." >&2
exit 1
fi
- if [ "$LVMVERSION" = "2" ]; then
+ if [ "$LVMTOOLSVERSION" = "2" ]; then
findmodule "-dm-mod"
- elif [ "$LVMVERSION" = "1" ]; then
+ elif [ "$LVMTOOLSVERSION" = "1" ]; then
findmodule "-lvm"
findmodule "-lvm-mod"
else
- echo "ERROR: LVM version $LVMVERSION is not supported yet." >&2
+ echo "ERROR: LVM version $LVMTOOLSVERSION is not supported yet." >&2
exit 1
fi
uselvm="yes"
@@ -690,11 +690,11 @@ while [ $# -gt 0 ]; do
--without-bootsplash)
BOOT_SPLASH="no"
;;
- --lvmversion=)
- LVMVERSION="`echo $1 | awk -F= '{print $2;}'`"
+ --lvmtoolsversion=|--lvmversion=)
+ LVMTOOLSVERSION="`echo $1 | awk -F= '{print $2;}'`"
;;
- --lvmversion)
- LVMVERSION="$2"
+ --lvmtoolsversion|--lvmversion)
+ LVMTOOLSVERSION="$2"
shift
;;
--with=*)
@@ -997,7 +997,7 @@ if is_yes "$uselvm" ; then
echo "mount -t proc none /proc" >> "$s"
echo "mount -t devfs none /dev" >> "$s"
echo "mount -t tmpfs none /tmp" >> "$s"
- if [ "$LVMVERSION" = "1" ] ; then
+ if [ "$LVMTOOLSVERSION" = "1" ] ; then
echo "lvm vgscan -T" >> "$s"
echo "lvm vgchange -T -a y" >> "$s"
else
diff --git a/geninitrd.8.xml b/geninitrd.8.xml
index 116cad8..29a24c3 100644
--- a/geninitrd.8.xml
+++ b/geninitrd.8.xml
@@ -23,7 +23,7 @@
<arg rep="repeat">--preload=module</arg>
<arg>--fstab=fstab</arg>
<arg>--raidtab=raidtab</arg>
- <arg>--lvmversion=1|2</arg>
+ <arg>--lvmtoolsversion=1|2</arg>
<arg>--modules-conf=modules.conf</arg>
<arg>--fs=rom|ext2|cram</arg>
<arg>--with-insmod-static</arg>
@@ -169,7 +169,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term>--lvmversion=1|2</term>
+ <term>--lvmtoolsversion=1|2</term>
<listitem>
<para>Tell which version of LVM tools are used.</para>
</listitem>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11
More information about the pld-cvs-commit
mailing list