It looks like a feature to me.
See the following in the pkg(1) man page.
pkg(1) attempts to determine, based on its working directory, in
what image it has been invoked. If no image metadata can be found
in the parent directories, the invocation will fail.
OPTIONS
The following options are supported:
-R dir
Operate on the image rooted at dir, rather than the one
discovered
automatically.
Padraig
On 08/24/10 10:53 AM, Jan Hnatek wrote:
Hi,
I observed the following pkg behavior,
which I find rather strange (snv_134b):
$ cd /
$ pkg publisher
PUBLISHER TYPE STATUS URI
opensolaris.org (preferred) origin online
http://pkg.opensolaris.org/dev/
$ cd /export/backup/xxxxx
$ pkg publisher
PUBLISHER TYPE STATUS URI
localhost (preferred) origin online http://localhost:10000/
Now xxxxx is a backup of a whole filesystem from previous
installation of that machine and pkg probably picks up some
configuration from that.
Is this a feature or a bug?
Thanks,
hnhn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss