[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] Very small but important whoops in lvmcreate_initrd in 1.0.1-rc1



There was a gratuitous 'shift' in the script, causing it to swallow the
next parameter.  This wasn't very nice when I tried to call it with
'--nodep 2.4.9' and watched it over-write my initrd-lvm-2.4.5.gz ;)

Patch attached.

-- 
				Valdis Kletnieks
				Operating Systems Analyst
				Virginia Tech

*** tools/lvmcreate_initrd	Fri Aug 17 14:58:24 2001
--- tools/lvmcreate_initrd.fixed	Tue Aug 28 17:44:41 2001
***************
*** 116,122 ****
     case $1 in
     -h|--help) usage; exit 0;;
     -i|--iop) IOP=$2; shift;;
!    -M|--nomod) USEMOD=""; shift;;
     -V|--version) exit 0;;
     -d|-v|--debug|--verbose) VERBOSE="y";;
     [2-9].[0-9]*.[0-9]*) VERSION=$1;;
--- 116,122 ----
     case $1 in
     -h|--help) usage; exit 0;;
     -i|--iop) IOP=$2; shift;;
!    -M|--nomod) USEMOD="";;
     -V|--version) exit 0;;
     -d|-v|--debug|--verbose) VERBOSE="y";;
     [2-9].[0-9]*.[0-9]*) VERSION=$1;;

Attachment: pgp00043.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]