On Mon, May 15, 2006 at 05:02:41PM -0700, Frank Cusack wrote:
> If I try to import a manifest in a non-running zone (install and run
> svccfg using chroot), I get the error
> 
> svccfg: Could not connect to repository server: repository server 
> unavailable.
> 
> which is fine.  My question is, how can I tell if the repository server is
> available?

  A repository server is normally only available if the system is up
  and running.  In non-live situations, you can tell svccfg to look at
  a specific repository by using the 'repository' subcommand.  This is
  a dangerous, however, if someone else is doing the same thing (e.g.
  if the zone *is* running).

> Truss in a running zone shows svccfg opening
> /etc/svc/volatile/repository_door.  Since this must be a well known name,
> can I depend on it being stable?

  It's well known... to the SMF commands and libraries.  To all others,
  it is a private implementation detail and should not be considered
  stable.

> I'd just run the import command but I don't want to go through acrobatics
> filtering 'Could not connect' from other errors.

  Is there a reason you can't just place the manifest in the zone and
  let SMF import it for you at boot time?

  In general, we recommend (for security reasons, among others) that
  you access the contents of a zone as little as possible from outside
  the zone.

  Dave


Reply via email to