On 06/30/10 09:10 AM, James C. McPherson wrote:
Hi folks,
today on elpaso we once again got bitten by the effect of
1482 image find_root should ignore autofs directories listed in mnttab
Checking whether perl-510 was installed worked fine for me,
but not JBeck, because his pwd was /net/opal/something, and
he hasn't installed perl-510 on opal yet.
I have been bitten by this when the pkg command becomes mysteriously
unresponsive traversing NFS directories that are unrelated to my system
image. I became aggravated enough about it to query this mailing list
about it and add an entry to
https://defect.opensolaris.org/bz/show_bug.cgi?id=15864. I suspect that
my (yours, jbeck's, nico's, and likely other's) experiences are likely
indicative of future customers' experiences.
After a long and somewhat heated discussion with Rich earlier
this evening, I found out that a number of people using pkg(5)
make the assumption that
cd /random/mount/point
pkg install randomfuu
will install randomfuu in the image which is found underneath
/random/mount/point. (Rather than running pkg -R /random/mount/point
install randomfuu, as I would have expected from TFM).
And therefore fixing pkg(1) so that it searches for system images
first (ie, what a naive user like myself might think after
reading TFM), would break them. And they would scream.
I don't see how that's relevant. This is a product under development.
Things can change when problems are found, and things change
incompatibly during development. That was a premise for releasing an
OpenSolaris product with these "under-development" bits in the first place.
I've searched, but I haven't come across any actual user images
yet. By that I mean, images that I want to install into $HOME.
Where can I find a pkg(5) definition of a user image?
It is my opinion that this behaviour is a significant departure
from the principle of least surprise. Particularly from the
perspective of somebody who has many years of SVR4 pkgadd/pkgrm
muscle memory.
I agree.
I'd be glad to find out why it is that what I think of as the
obvious use case is now deprecated.
In the meantime, I'm going to have to alias "pkg" to
"/usr/bin/pkg -R /".
It would seem to me that requiring the majority of the common users to
use "-R /", or set PKG_IMAGE, or "cd /" to prevent unintended
side-effects or mystery hangs while the default usage is applicable to
the minority of users who may in the future use images in non-standard
locations is rather strange. Based on Shawn's post in the bug
(https://defect.opensolaris.org/bz/show_bug.cgi?id=15864), I think there
might be some consensus on that point...
-Seb
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss