Skip to contentSkip to conversation

Very small but important whoops in lvmcreate_initrd in 1.0.1-rc1

linux-lvm [email protected] 2 participants 2 messages Aug 28, 2001

lore
Share & tools
lore
#0 lore raw

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.

Signature · 3 lines
				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;;
#1 lore raw
Quoted 3 lines · On Aug 28, 2001 17:53 -0400, [email protected] wrote:

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 ;)

Have fixed this in CVS.

Cheers, Andreas

PS - no commit message was mailed out, because "[email protected]" is
not a valid user ID. Somebody broke the commit message script.

Signature · 3 lines
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert