Add custom packages and patches to Jumpstart Enterprise Toolkit (JET)

2:31 pm Solaris Jumpstart

In the last post on JET we created a very basic template but other than the bare minimum there was absolutely no added functionality that makes JET so powerful and easy to use. So in this post i want to show how to add explorer and custom patches and packages. This still is touching on the basics, but it’s a start to showing the extra features over regular jumpstart.

I will keep using the custom template i build in the last post but add sds and explo modules to the template. In a later post i will show how to use sds for mirroring but i will add it now.

heineken:/opt/SUNWjet/bin # ./make_template -f -T grolsch grolsch sds explo
Adding product configuration information for
+ sds
+ explo
Updating base_config template specifics
Client template created in /opt/SUNWjet/Templates

Download and unpack the explorer package. In this instance it resides in /work:

heineken:/work # pkginfo -d /work/ -l | egrep ‘(PKGINST|VERSION)’
PKGINST: SUNWexplo
VERSION: 5.10,REV=2007.09.20.19.12
PKGINST: SUNWexplu
VERSION: 5.10,REV=2007.09.20.19.12

Now, this is very important. We have to check and possibly edit the /opt/SUNWjet/Product/explo/package.matrix file. We have to ensure there is an entry for the latest version of explorer, in this case 5.10. I added the line below to the file and then added the package to the toolkit.

heineken:/opt/SUNWjet/Products/explo # vi package.matrix
5.10:5.10:SUNWexplo SUNWexplu

heineken:/opt/SUNWjet/bin # ./copy_product_media explo 5.10 /work sparc
Transferring <SUNWexplo> package instance
Transferring <SUNWexplu> package instance

Packges copied.

So, let’s confirm it’s all there.

heineken:/work/jumpstart/install/pkgs # ls -la
total 6
drwxr-xr-x 3 root root 512 Mar 3 11:35 .
drwxr-xr-x 5 root root 512 Feb 14 13:16 ..
drwxr-xr-x 3 root root 512 Mar 3 11:35 explo

heineken:/opt/SUNWjet/bin # ./list_product_versions
Product Versions
——- ——–
explo 5.10

You’ll need to modify the explorer module inside the template file, especially where it asks the version of the explorer. You can also fill in the explorer defaults straight away.

Ok, that’s that. But that was how to add the explorer package which comes with its very own module. What about packages from say sunfreeware.com.

Let’s install sudo. Download SMCsudo, SMCgcc and SMCliconv from www.sunfreeware.com. In my case i will download them to /tmp. To add them to the jumpstart is a two command process for every package.

heineken:/opt/SUNWjet/bin # pkgtrans /tmp/gcc-3.4.6-sol10-sparc-local /work SMCgcc
Transferring <SMCgcc> package instance
heineken:/opt/SUNWjet/bin # ./copy_custom_packages /work sparc SMCgcc
Transferring <SMCgcc> package instance
Packages copied

heineken:/opt/SUNWjet/bin # ./list_product_versions
Product Versions
——- ——–
custom sparc
explo 5.10

heineken:/work/jumpstart/install/pkgs/custom/sparc # ls -la
total 8
drwxr-xr-x 4 root root 512 Mar 4 11:45 .
drwxr-xr-x 3 root root 512 Mar 4 11:40 ..
drwxr-xr-x 3 root root 512 Mar 4 11:59 SMCgcc
drwxr-xr-x 3 root root 512 Mar 4 11:45 SMCliconv
drwxr-xr-x 3 root root 512 Mar 4 11:40 SMCsudo

Now we have to update the custom_packages line in the template:

custom_packages=”SMCgcc SMCliconv SMCsudo”

And add a patch. Let’s add the daylight savings patch to the /work/jumpstart/patches/custom directory and update the template.

custom_patches=”125378-05″

Update the client and do another boot net - install:

heineken:/opt/SUNWjet/Templates # ../bin/make_client -f grolsch

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.