Greetings,

With the putback of changeset 2158:5a688b5b92a3 to the pkg(5) gate, the behaviour of how pkg(5) clients look for images has been changed.

============================================================
What changed?
============================================================
Previously, pkg(1) and pkgdepend(1) would look for a packaging image to operate on starting with the current working directory at the time the command was executed, and then work back towards the filesystem root until one was found.

This behaviour was originally implemented with a focus on end-user convenience when using pkg(5) user images. However, on the Solaris platform user images are the exception; not the norm.

As a result, when users interacted with other systems via NFS, or mount points of older boot environments, etc. they were often surprised whenever the packaging command they executed operated on a system image other than the one at '/'.

While the search backwards from the current working directory is still performed, an exception is now raised if an image is found anywhere other than '/' if the client is being executed on the Solaris platform. On other platforms, where pkg(5)'s common use is to manage user images, the behaviour remains unchanged.

Consumers of the pkg.client.api now also have control over where to start looking for an image.

============================================================
How could this impact me?
============================================================
pkg(1) or pkgdepend(1) may exit with an error in a usage scenario where it did not previously if operations were performed on images located at places other than '/' and a root was not explicitly specified.

The act of searching backwards on Solaris was retained so that users that relied on the previous behaviour aren't surprised and so that it's immediately obvious how to proceed.

However, pkg(1) will exit with an error such as the following on Solaris if the image is found somewhere other than '/':

u...@host:/mnt/oldbe/some/directory $ pkg publisher
pkg: pkg(5) image found at '/mnt/oldbe' instead of '/'.

To use this image, execute pkg again as follows:

pkg -R /mnt/oldbe publisher

To use the system image, execute pkg again as follows:

pkg -R / publisher

============================================================
Changeset Details
============================================================
The following defects were resolved as part of the changes discussed above (see defect.opensolaris.org for details):

  15864  inferring image location from current working directory can be
         harmful


-Shawn
_______________________________________________
install-discuss mailing list
install-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/install-discuss

Reply via email to