Re: [zones-discuss] Installing new zone
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 2 Are 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
Re: [zones-discuss] Installing new zone
David Ryder wrote: Mike, Thanks for your reply. Do the pre & postinstall scripts execute during new Zone creation? It depends on the settings of the SUNW_PKG_HOLLOW and SUNW_PKG_ALLZONES attributes in the pkginfo(4) file. If I remember right, if both are true, then the pre/post install scripts are not run in the zone. Jerry ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Installing new zone
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
Re: [zones-discuss] Installing new zone
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 -- Mike Gerdts http://mgerdts.blogspot.com/ ___ zones-discuss mailing list zones-discuss@opensolaris.org