[oi-dev] Issue 547 - Updating oi_148 pkg so image-update sets opensolaris.org publisher non-sticky

Alasdair Lumsden alasdairrr at gmail.com
Tue Jul 12 23:43:42 UTC 2011


Hi All,

I've updated my self-deleting manifest to set opensolaris.org non-sticky. This should hopefully be the final build, which we can ship to the main repo.

I'd like more than 3 people to test this before we ship this /dev.

The changeset to mq_pkg-gate is here:

http://hg.openindiana.org/mq_pkg-gate/file/tip/oi-issue-547-installer-doesnt-set-opensolaris-org-publisher-non-sticky

The repo is here:

http://pkgdev.uk.openindiana.org:20547/

Here is a log of testing it (which explains what you have to do to test):

root at sandbox.thnstar.everycity.co.uk:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
openindiana.org          (preferred)  origin   online   http://pkg.openindiana.org/dev/
opensolaris.org          (non-sticky) origin   online   http://pkg.openindiana.org/legacy/
root at sandbox.thnstar.everycity.co.uk:~# pkg set-publisher --sticky opensolaris.org
root at sandbox.thnstar.everycity.co.uk:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
openindiana.org          (preferred)  origin   online   http://pkg.openindiana.org/dev/
opensolaris.org                       origin   online   http://pkg.openindiana.org/legacy/
root at sandbox.thnstar.everycity.co.uk:~# pkg set-publisher -g http://pkgdev.uk.openindiana.org:20547/ pkg5-nightly   
root at sandbox.thnstar.everycity.co.uk:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
openindiana.org          (preferred)  origin   online   http://pkg.openindiana.org/dev/
opensolaris.org                       origin   online   http://pkg.openindiana.org/legacy/
pkg5-nightly                          origin   online   http://pkgdev.uk.openindiana.org:20547/
root at sandbox.thnstar.everycity.co.uk:~# pkg set-publisher --search-before openindiana.org pkg5-nightly
root at sandbox.thnstar.everycity.co.uk:~# pkg set-publisher --non-sticky openindiana.org
Caching catalogs ...
root at sandbox.thnstar.everycity.co.uk:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
pkg5-nightly             (preferred)  origin   online   http://pkgdev.uk.openindiana.org:20547/
openindiana.org          (non-sticky) origin   online   http://pkg.openindiana.org/dev/
opensolaris.org                       origin   online   http://pkg.openindiana.org/legacy/
root at sandbox.thnstar.everycity.co.uk:~# pkg install pkg://pkg5-nightly/package/pkg@0.5.11,5.11-0.148:20110712T232715Z
                Packages to update:     1
           Create boot environment:    No
               Services to restart:     1
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  1/1     126/126      0.7/0.7

PHASE                                        ACTIONS
Install Phase                                    1/1
Update Phase                                 241/241 

PHASE                                          ITEMS
Package State Update Phase                       2/2 
Package Cache Update Phase                       1/1
Image State Update Phase                         2/2 
root at sandbox.thnstar.everycity.co.uk:~# svcs -a
STATE          STIME    FMRI
...
offline*        0:39:10 svc:/system/manifest-import:default
root at sandbox.thnstar.everycity.co.uk:~# svcs -a
STATE          STIME    FMRI
...
online          0:39:12 svc:/system/manifest-import:default
root at sandbox.thnstar.everycity.co.uk:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
pkg5-nightly             (preferred)  origin   online   http://pkgdev.uk.openindiana.org:20547/
openindiana.org          (non-sticky) origin   online   http://pkg.openindiana.org/dev/
opensolaris.org          (non-sticky) origin   online   http://pkg.openindiana.org/legacy/

As you can see, after installing the new package, it sets opensolaris.org non-sticky.

Looking forward to feedback :-)

Cheers,

Alasdair





More information about the oi-dev mailing list