Operating System - HP-UX
1838576 Members
4156 Online
110128 Solutions
New Discussion

make_recovery "final commands" scripts question

 
SOLVED
Go to solution
Joel Shank
Valued Contributor

make_recovery "final commands" scripts question

Can anyone tell me how to specify a script that will execute after make_recovery recovers a system? I have looked through a host of documentation that references it but does tell me how to do it. I see a message in the make_recovery log that says I can "add final commands" to /var/opt/ignite/recovery/config.recover, but when I look at this script it contains language that I assume defines my system configuration (which I do not want to change), but nothing about "final commands".

Where do I put the script and how do I specify that I want it executed?

This is a make_recovery not a golden image. The docs go into great detail on scripts for a golden image, but nothing for make_recovery.

Any assistance is greatly appreciated!

Thanks,
JLS
1 REPLY 1
Carlos Fernandez Riera
Honored Contributor
Solution

Re: make_recovery "final commands" scripts question


you must use a final_cmd :

Following lines are extracted from man 4 instl_adm,

final_cmd = cplx_string
These keywords specify a shell command string that should be
executed at the prescribed points during the installation.
See the section Command and Script Execution Hooks for
details.
HTH

unsupported