On Fri, Dec 15, 2000 at 07:03:17PM +0100, Russell Coker wrote: > On Friday 15 December 2000 18:34, you wrote: > > > I believe that what I suggested (or the alternate suggestion of using > > > wrappers) will make my package more usable in the event of kernel > > > upgrades than most kernel-related packages in Debian, and I believe that > > > it will satisfy all the requirements of users. > > > > I agree with you, FWIW. For some unexplainable reason, the wrapper > > idea apeals to me more than the changing links, but both seem equally > > workable. > > > > If you choose to go with the wrapper approach, it would be nice if there > > was a --show-choice option (or some such name) that showed which version > > of lvm it was trying to use -- it might be a useful debugging tool. > > I have decided that wrappers are a requirement and that my previous idea of > sym-links was stupid. > > The sym-links idea fails in the following ways: > Doesn't work when root is mounted read-only. > Has big problems if you mount root, do LVM stuff, then mount /usr if some of > the lvm utilities are in /usr/sbin (I believe that they aren't all required > to be in /sbin). > Doesn't conveniantly allow the administrator to force things if the script > gets it wrong (failure modes that aren't catastrophic is one of the good > points of Linux). > > So what I plan to do is use a wrapper that first checks an environment > variable. So if the scripts are unable to determine the version the > administrator can do "export LVM_VERSION=0.9" and then run the programs. > > I will build some packages with this support and try it out. > > I was originally going to send this as a private message, but I decided that > I had made some reasonably good points supporting my sym-links idea on the > list so therefore I should refute them in case someone decides to implement > them. BTW, the wrapper idea still doesn't work if you are running LVM as your root file system. -- AJ Lewis Sistina Software Inc. Voice: 612-379-3951 1313 5th St SE, Suite 111 Fax: 612-379-3952 Minneapolis, MN 55414 E-Mail: lewis@sistina.com Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B 52A0 941E 1261 0029 2648 A computer without a Microsoft operating system is like a dog without bricks tied to its head.
Attachment:
pgpfK8JoCfcZT.pgp
Description: PGP signature