Operating System - HP-UX
1753513 Members
5794 Online
108795 Solutions
New Discussion юеВ

Re: Golden image - config.local - question

 
SOLVED
Go to solution
likid0
Honored Contributor

Golden image - config.local - question

Hy,

I have configured a couple of golden images that are working fine with automated installations using bootsys, but there is one thing I want I can't get to work.

and it's when the golden image end it's installation, I don't want it to set any ip's nor hostname, I wan't it to ask me for the hostname,ip,timezone on the last boot like when you are configuring a new system.

Is there any parameter i can add to the config.local for example?

this is what i have:

in the INDEX:

cfg "HP-UX B.11.23 imagenes MDEF" {
description "Golden Images for MDEF of 11.23"
"/opt/ignite/data/Rel_B.11.23/config"
"/opt/ignite/data/Rel_B.11.23/hw_patches_cfg"
"/var/opt/ignite/archives/Rel_B.11.23/B.11.23.golden_image.cfg"
"/var/opt/ignite/data/Rel_B.11.23/depot.freeware"
"/var/opt/ignite/data/Rel_B.11.23/config.local"
}


In the /var/opt/ignite/data/Rel_B.11.23/config.local

# /var/opt/ignite/config.local: config file to be used for local customizations.
post_config_script += "/var/opt/ignite/scripts/crea_securefs.ksh"
sd_command_line += " -xpatch_save_files=false "
root_password="???┬┐┬┐┬┐?┬┐?┬┐"
timezone="MET-1METDST"

can you add something like:
hostname=""

??

Thnx!
Windows?, no thanks
5 REPLIES 5
V. Nyga
Honored Contributor
Solution

Re: Golden image - config.local - question

Hi,

if you add another script?
post_config_script += "set_parms initial"

or instead of 'initial' the parts: hostname, timezone, ip_address

Volkmar
*** Say 'Thanks' with Kudos ***
likid0
Honored Contributor

Re: Golden image - config.local - question

Yep that works, thnx for the idea. The only problem is because it's a post_config_script it asks for the information and then it reboots for the last time. I would like that set_parms lauched itseft when you log in for the first time.

I will try with a postscript that leaves hostname="" in netconf

Thnx
Windows?, no thanks
V. Nyga
Honored Contributor

Re: Golden image - config.local - question

Well, I've one user (stop) who has a command (shutdown) in his '.login' file.
I believe you don't want to 'set_parms' at every login as root ;-) - maybe you can create such a user.

V.
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: Golden image - config.local - question

>V: I believe you don't want to set_parms at every login as root

You could use a sentinel file so you only do it once. You would have to add code to root's .profile.
likid0
Honored Contributor

Re: Golden image - config.local - question

I finally used a post script, that leaves in the netconf file with:

HOSTNAME=""

so when it boots up for the first time it asks for the netinfo.


Thnx all.
Windows?, no thanks