Anoop Rajendra wrote: > Hi all. > > On my jumpstart server I have a directory called > /export/jumpstart/install. I have put the entire Solaris distribution > into this directory using the setup_install_server script. Now I want > to add my own packages to this install directory and install those new > packages on my client machines. > > For example > Let's say I create a software package called MYPKGsome_pkg. I add > this to the installation directory by using pkgadd command like this > > # pkgadd -s /export/jumpstart/install/Solaris_10/Product/ -d <PKGDIR> > MYPKGsome_pkg > > The package gets copied into > /export/jumpstart/install/Solaris_10/Product/. > > Next I modify my profile file to include the line > > package MYPKGsome_pkg add > > However, when I try to jumpstart my client machine I get an error stating > > WARNING: Unknown package ignored (MYPKGsome_pkg) > > I dug into this a little deeper, and came up with a hint. The > directory /export/jumpstart/install/Solaris_10/Product contains a file > called .packagetoc . This file contains a list of all packages that > can be installed. > > (Is my understanding correct so far?)
That file is reserved for products that are part of the distribution. There are several others as well that would need to be changed. > > I don't want to use the finish scripts to run kludgy commands to > install the package after the installation has finished. > > What I need to know is whether there are any utilities that'd allow me > to add packages to this .packagetoc file automatically or atleast > programmatically. > Follow the instructions in the http://docs.sun.com/app/docs/doc/817-5506/6mkv6kib0?a=view document. You would want to use Packages Stored on a Local File A package can be installed from the miniroot from which you booted the system. When you perform a custom JumpStart installation, you boot the system from a DVD, CD, or an NFS-based miniroot. The installation software is loaded and run from this miniroot. Therefore, a package that you stored in the DVD, CD, or NFS-based miniroot is accessible as a local file. Use the following syntax for the package keyword. I believe for you it would be package MYPKGsome_pkg add local_file /cdrom/Solaris_10/Product
