On 05/27/11 12:15, Jens Elkner wrote: ...
However, at least for native, not running zones I can't see any reason, why one should not use -R. IIRC in contrast to pkgadd IPS is not running any pre/post install scripts anymore. So it basically comes down to a
But it does allow packages to restart, disable, and/or suspend active services managed by SMF. That won't happen if you run the command using the alternate root option for obvious reasons.
dep check, SW download and "untar" it in the [virtual] root dir. May be hard links are a problem, but that's IMHO nothing, what the pkg stuff can't find out/correct.
See above.
Actually, one doesn't really need pkg in a zone, as long as the global zone admin is the zone admin as well. And if one starts removing pkg, one can continue with python (I mean, who needs this? ;-)), than tcl/tk, which opens the door to remove the X11 stuff and groff => ~175 MB less, and now we would have something, 234MB vs. 407MB /, I could start with without a bitter aftertaste - i.e. probably would not miss sparse zones than (except its read-only fs features). Usually, we would add the jdk and/or some convinience stuff and end up with ~515 MB (would be nice, if the visualVM would be a separate pkg, since not needed in a zone: ~ -30 MB). For that we certainly need to use pkgadd (since pkg has still no relocation switch aka "-a none") - another reason to remove pkg and company from the zone and do the install/uninstall from outside ...
I think you need to approach the problem differently. Your solution seems far more complex that necessary and it doesn't follow expected administrative patterns for the system.
[ Just in case: If one is interested in more numbers, have a look at http://iws.cs.uni-magdeburg.de/~elkner/osol/ips/ BTW: uiforce.patch is the patch I used to make pkg behave as I want. (IMHO most sysadmins don't like pkg mgmt SW, which has no --force option, because they usually know, what they wanna do/need). ] Last but not least: Upgrades with IPS! How should that work without -R? Rebooting the server after update/upgrade, and than reboot all zones again (re-attach)? - starting to shiver ;-)
Upgrades are handled by the zone system and pkg(1) automatically now as of build 165.
-Shawn _______________________________________________ install-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/install-discuss
