Ignite-UX

Re: RE: How do you add an entry to swlist for reference purposes?

 
SOLVED
Go to solution
Nick Tarmey_3
Occasional Advisor

RE: How do you add an entry to swlist for reference purposes?

Hi folks!

I'm using Ignite to install various golden images on different servers. In order to differenciate between different installs and see what version of the image is being used I would like to have an entry in the swlist showing a reference to the image description. Any ideas how to do this?

thanks in advance!
Nick.
2 REPLIES 2
Bill McNAMARA_1
Honored Contributor
Solution

Re: RE: How do you add an entry to swlist for reference purposes?

In the INDEX file you'll have something like this:

cfg "HP-UX B.10.20 archive" {
description "The ARCHIVE B.11.00 release with patches."
"/opt/ignite/data/Rel_B.11.00/config"
"/var/opt/ignite/data/Rel_B.11.00/core11.cfg"
"/var/opt/ignite/data/Rel_B.11.00/patch_bundle.cfg"
"/var/opt/ignite/data/Rel_B.11.00/misc_patch_bundle.cfg"
"/var/opt/ignite/config.local"
} = TRUE


add the line: post_config_script += "/var/opt/ignite/scripts/lastly.ksh"
to any config (cfg file)

This script can then do something like the following:

echo "$(/usr/bin/banner lovely image)" >> /etc/issue
echo "installed on $(/usr/bin/date)" >> /etc/issue

Rather than modifying the swlist.

Although if you really want you can modify the swlist by playing around with the files in /var/adm/sw/products/

Later,
Bill
It works for me (tm)
Scott Marer
Occasional Advisor

Re: RE: How do you add an entry to swlist for reference purposes?

I suppose you coud create a bogus product :

# vi /tmp/.psf
product
tag
fileset
tag
:wq!
# swpackage -s /tmp/.psf
# swinstall

Replace with a descriptive name, no spaces...

This will create an entry in swlist output...