Project

General

Profile

Bug #13201

IPS image re-hydration fails

Added by Andy Fiddaman 26 days ago.

Status:
In Progress
Priority:
Low
Assignee:
Category:
packaging
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

It is not currently possible to rehydrate an IPS image in the global zone as the operation calls zonecfg_default_brand(), via zoneadm, which depends on /etc/zones/SUNWdefault.xml, which is not itself protected from dehydration.

bloody# pkg image-create -F -p omnios=https://pkg.omnios.org/bloody/core /test

bloody# pkg -R /test add-property-value dehydrated omnios
bloody# pkg -R /test install SUNWcs
Packages to install: 71
Mediators to change:  4
 Services to change:  1

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                              71/71       352/352      0.4/0.4 94.9k/s

PHASE                                          ITEMS
Installing new actions                   18053/18053
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Building new search index                      71/71
Updating package cache                           1/1

bloody# pkg -R /test dehydrate
pkg: dehydrate failed (linked image exception(s)):
The following subprocess returned an unexpected exit code of 1:
    /usr/sbin/zoneadm -R /test/ list -cp
And generated the following error message:
zoneadm: unable to determine default brand

No data to display

Also available in: Atom PDF