Re: [zones-discuss] Installing new zone

2006-07-31 Thread Enda o'Connor - Sun Microsystems Ireland - Software Engineer




Hi
If the package touches file systems that are inherited, zoneadm will not
run any CAS, postinstall scripts associated with the package,
Put anopther way, if all the bits the package delivers are part of inherited
file systems, the postinstall will not get run.


Outside of zoneadm install, we use certain zone atributes such as SUNW_PKG_HOLLOW,
SUNW_PKG_ALLZONES and SUNW_PKG_THISZONE to determine what to run in the non
global zone

So the question is
1 Is the package delivering only to inherited file systems ( perhaps uses
postinstall to mkdir /opt/CA
2Are you just using mkdir somwhere to generate the /opt/CA dir? ( as Mike
mentioned below )
  If so, you might want to make this part of a pkgmap if possible, otherwise
you need to run installf to register the dir with the contents DB, which
zoneadm install uses to populate the non global zone.

Enda

David Ryder wrote:

  Mike,
Thanks for your reply.

Do the pre  postinstall scripts execute during new Zone creation?

Thanks,
David



Mike Gerdts wrote On 07/21/06 20:50,:
  
  
On 7/21/06, David Ryder [EMAIL PROTECTED] wrote:



  Hi,

My customer developed a package "ISMepcm" which installs a directory
/opt/CA.  After the ISMepcm package is installed in the global zone,
the customer adds a new sparse zone.  The directory /opt/CA
does not get created in the new zone.  They would like to know how
to get this working.
  


Does /opt/CA exist in /var/sadm/install/contents?  It sounds to me
like the package creates the directory with mkdir in one of the
installation scripts without calling installf to tell the package
database what it did.

Mike

  
  
___
zones-discuss mailing list
zones-discuss@opensolaris.org
  




___
zones-discuss mailing list
zones-discuss@opensolaris.org

[zones-discuss] Installing new zone

2006-07-21 Thread David Ryder
Hi,

My customer developed a package ISMepcm which installs a directory
/opt/CA.  After the ISMepcm package is installed in the global zone,
the customer adds a new sparse zone.  The directory /opt/CA
does not get created in the new zone.  They would like to know how
to get this working.

Here are the steps to recreate the problem:

1. Install Solaris 10 1/06 with no additional patches.
2. Create a whole root zone azone.
3. Create a sparse zone bzone.
4. pkgadd ISMepcm in the global zone (available at
   /net/cores/cores/65076501).

   Observe that the /opt/CA directory correcly gets created in the
   global zone, as well as in the existing whole root zone and the
   existing sparse zone:

   # cd /opt
   # ls
   CASUNWits   SUNWmlib  SUNWrtvc

   # cd /zones/azone/root/opt
   # ls
   CASUNWits   SUNWmlib  SUNWrtvc

   # cd /zones/bzone/root/opt
   # ls
   CASUNWits   SUNWmlib  SUNWrtvc

5. Now that the pkg ISMepcm is installed, create another sparse
   zone czone.  Observe that /opt/CA DOES NOT get created in czone:

   # cd /zones/czone/root/opt
   # ls
   SUNWits   SUNWmlib  SUNWrtvc


   There is no indication of a problem with the installation:
   /zones/czone/root/var/sadm/system/logs/install_log
   ...
   *** package ISMepcm successfully installed.
   ...

Thanks in advance for your advice!

David Ryder
PTS-OE

___
zones-discuss mailing list
zones-discuss@opensolaris.org