[OpenIndiana-discuss] Broken pkg in ipkg zones since update to oi_151a5

Sašo Kiselkov skiselkov.ml at gmail.com
Wed Jul 4 21:09:18 UTC 2012


Hi guys,

I noticed that there's been an update published to openindiana.org
(oi_151a5) - great stuff, but the new version of pkg(1) in it broke zone
creation from oi_151a4 hosts. In short, here's the problem:

 * Global zone: oi_151a4
 * zoneadm -z newzone install   <-- this fetches and installs pkg(1)
                                    from openindiana.org for oi_151a5
 * zlogin newzone
 * (in-newzone)# pkg publisher
   pkg: No image found.

The IPS database format has probably changed in such a way that the new
pkg(1) doesn't recognize the old database. I've tested this numerous
times with the following pkg(1) versions and I can consistently
reproduce this:

(global-zone)# pkg version
5d2771134f21+

(non-global-zone)# pkg version
4d886e93dafc

A way to work around this is to re-generate the package database in the
non-global zone as follows:
# pkg image-create -f --zone --full -p http://pkg.openindiana.org/dev/ /
# pkg install entire     # to ensure everything's properly installed

When installing the non-global zone from an oi_151a5 global zone, this
doesn't occur (just tested on a second machine - yep, if global is
oi_151a5, all is good, otherwise, the non-global zone's pkg is broken).
Sure I'm not the only one who's seeing this, right?

Cheers,
--
Saso



More information about the OpenIndiana-discuss mailing list