Operating System - HP-UX
1748069 Members
5141 Online
108758 Solutions
New Discussion юеВ

Re: where to put the post_config_script

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

where to put the post_config_script

In my:
/var/opt/ignite/data/Rel_B.11.00/core11.cfg

I have the following:
sw_source "core archive" {
description = "HP-UX Core Operating System Archives"
load_order = 0
source_format = archive
source_type="NET"

# change_media=FALSE

post_load_script = "/opt/ignite/data/scripts/os_arch_post_l"
post_config_script = "/opt/ignite/data/scripts/os_arch_post_c"

nfs_source = "W.X.Y.Z:/var/opt/ignite/archives/Rel_B.11.00"
}


and

#########################################################
## OS archives
#########################################################
init sw_sel "golden image - 64 bit OS" {
description = "HP-UX 11.00 - 64 Bit - Oct 2001"
sw_source = "core archive"
sw_category = "HPUXEnvironments"
archive_type = gzip cpio
archive_path = "Oct2001.gz"
impacts = "/" 25Kb
impacts = "/.microsoft" 1Kb
impacts = "/dev" 11Kb
impacts = "/etc" 3994Kb
impacts = "/home" 1Kb
impacts = "/opt" 545764Kb
impacts = "/sbin" 18765Kb
impacts = "/stand" 686Kb
impacts = "/usr" 542240Kb
impacts = "/var" 500463Kb
exrequisite += "golden image - 32 bit OS"
visible_if = can_run_64bit
} = (!can_run_32bit)

Now, I've created the golden image Oct2001.gz, and want as the next step of the installation to swinstall certain patches (that require multiple reboots) from an sd-ux depot.

For the moment I'm assuming I can swinstall network:/depot from a script:
/var/opt/ignite/scripts/general_setup.ksh

But I'm wondering where exactly to put the post_config_script line into my config file!

##
##
## Post installation scripts here
##
##
##
post_config_script+="/var/opt/ignite/scripts/general_setup.ksh


I have another question but will as seperately...

Later,
Bill
It works for me (tm)
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: where to put the post_config_script

There are a number of points in the install process in which you can force scripts or commands to be run. Check the instl_adm(4) man page under the "Command and Script Execution Hooks" section for specifics. One point to note is that the post_config_script will run after all software has been loaded and the system has been booted with its final kernal, but BEFORE any of the normal /etc/rc startup scripts have been run. Basic networking is enabled in this environment.


http://www.software.hp.com/products/IUX/docs/sysadm.html#Chapter-5

live free or die
harry
Live Free or Die
Bill McNAMARA_1
Honored Contributor

Re: where to put the post_config_script

yea, that man page is just too big, I don't have the time ;) ...

I just want to know if this will work..

----- BEGIN
init sw_sel "golden image - 64 bit OS" {
description = "HP-UX 11.00 - 64 Bit - Oct 2001"
sw_source = "core archive"
sw_category = "HPUXEnvironments"
archive_type = gzip cpio
archive_path = "Oct2001.gz"
impacts = "/" 25Kb
impacts = "/.microsoft" 1Kb
impacts = "/dev" 11Kb
impacts = "/etc" 3994Kb
impacts = "/home" 1Kb
impacts = "/opt" 545764Kb
impacts = "/sbin" 18765Kb
impacts = "/stand" 686Kb
impacts = "/usr" 542240Kb
impacts = "/var" 500463Kb
exrequisite += "golden image - 32 bit OS"
visible_if = can_run_64bit
} = (!can_run_32bit)

#
# insert
#
post_config_script+="mypath/myscript.ksh"

--- EOF

And if it's a good place to put it or not.

note that I want to basically have a choice of one of several install scripts.

Would it be better to place it in the INDEX file then??

Later,
Bill
It works for me (tm)
harry d brown jr
Honored Contributor
Solution

Re: where to put the post_config_script

Yes:

If you want to make a script available under all configurations, you can add it to the /var/opt/ignite/INDEX file. Add the following to the end of this file:

scripts {
"/var/opt/ignite/scripts/install_default_printer"
}


live free or die
harry
Live Free or Die
Bill McNAMARA_1
Honored Contributor

Re: where to put the post_config_script