[OpenIndiana-discuss] pkg update requiring new boot-environment in a zone?

Sašo Kiselkov skiselkov.ml at gmail.com
Fri Nov 2 17:21:33 UTC 2012


On 11/02/2012 05:52 PM, Jeppe Toustrup wrote:
> On Fri, Nov 2, 2012 at 5:40 PM, Sašo Kiselkov <skiselkov.ml at gmail.com>wrote:
> 
>> I'm trying to update a few zones on my oi_151a4 box and the update
>> requests a new boot environment to be created - for the zone.
>> Predictably, this fails, and specifying --deny-new-be in the zone makes
>> pkg refuse to do the update.
>>
>> So here's the kicker: how does one update the image version inside a
>> zone? I fail to find any relevant documentation on this issue and I'm
>> sort of out of ideas.
>>
> 
> You stop the zone, and then from the global zone, you make sure the zone's
> file system is mounted, ie. by running 'zoneadm -z <zonename> ready'. Then
> you update the zone from the global zone, ie. 'pkg -R
> /path/to/<zonename>/root update', and finally you start the zone up again
> with 'zoneadm -z <zonename> boot'.

Thanks, this worked, albeit now I have a segfaulting problem since the
zfs(1M) and zpool(1M) tools have to be closely aligned with the kernel
interface (which is not binary-clean, it seems, great...). Oh well,
that's another story for another day.

Cheers,
--
Saso



More information about the OpenIndiana-discuss mailing list