Operating System - HP-UX
1752359 Members
6513 Online
108787 Solutions
New Discussion юеВ

How to add patch depots as an option within Ignite

 
SOLVED
Go to solution
Berd
Trusted Contributor

How to add patch depots as an option within Ignite

I'm currently working on creating Golden Images to simplify installing on new machines. I have managed to follow the Ignite Admin Guide and create a Golden Image successfully.

What I would now like to do is add patch depots as software options when rebuilding boxes. I already have my patch depots setup on another box. Can I configure Ignite to install patches from my patch depot after it has successfully built the machine ? Or more likely, how ?

Regards,
Berd
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: How to add patch depots as an option within Ignite

Shalom,

The depot will need to be on the same system serving up the golden image.

The post install script section, which can be used to mirror systems for example can include swinstall commands as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Berd
Trusted Contributor

Re: How to add patch depots as an option within Ignite

Here's what I have done. I've not tested yet so can't confirm whether it successful or not yet.

I ran a make_config -s hostname:/source_depot -c /location to place config file

This created a config file for my software depot which I verified using instl_adm. I moved this config file to /opt/ignite/data/Rel_B.11.11 and then amended the stanza in /var/opt/ignite/INDEX which related to my Golden Image to include this cfg file.

Now when I fire up the Ignite GUI to recoer a box I can see my depots as options on the Software tab.

I came to this conclusion from a combination of pg 185-190 of the Ignite Admin, and the below ITRC post

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1076837&admit=-682735245+1171364568713+28353475

I'll let you know how I get on.

Berd
Scot Bean
Honored Contributor
Solution

Re: How to add patch depots as an option within Ignite

I disagree with SEP that the patch depots have to be on a common server. They can be elsewhere. Also, using post-Ignite scripts for this is not a good idea, they often may not rebuild the kernel for you.

Sounds like you are off to a good start with 'make_config'. Ignite usually likes everything in your patch depot to be inside a bundle. If not already, you can use the Ignite command 'make_bundles' to get there.

The important config syntax that 'make_config' should have already built for your config file is:

sw_source "name" {
source_type=NET
source_format=SD
sd_server=
sd_depot_dir=
}

Then a "sw_sel" stanza will build the menu selection stuff (should also be there via 'make_config').

I use this all the time to "patch" my golden images during install. It works great. The patches are laid down in swinstall sessions right after the golden image is ignited.
Berd
Trusted Contributor

Re: How to add patch depots as an option within Ignite

Solution has been tested, and it worked ! I am now installingpatches from a remote depot as part of the ignite build.

Thanks fot the assistance,
Berd