Operating System - HP-UX
1837283 Members
3331 Online
110115 Solutions
New Discussion

Re: Missing /etc/nsswitch.conf after install completes

 
SOLVED
Go to solution
David Burgess
Esteemed Contributor

Missing /etc/nsswitch.conf after install completes

Hi,

I have an Ignite-UX post script which rcp's /etc/nsswitch.conf from the Ignite server and then does an ls -l /etc/nsswitch.* to check if the file was successfully copied, which it is.

After the server is built and has finished its reboots, nsswitch.conf is missing. I assume it's got something to do with the config of the patches.

If so is there a way of copying it later so that it remains in place?

Regards,

Dave.
20 REPLIES 20
G. Vrijhoeven
Honored Contributor

Re: Missing /etc/nsswitch.conf after install completes

Hi Dave.

I usually copy some netwerk config file to /root (homedir rootuser) files like resolv.conf netconf nsswitch.conf hosts.

HTH,

Gideon
T G Manikandan
Honored Contributor

Re: Missing /etc/nsswitch.conf after install completes

It is documented in FAQ
http://software.hp.com/products/IUX/faq.html#N01C0A538.02AB79C8

check the script
os_arch_post_l

Just comment the line

mv nsswitch.conf nsswitch.final

T G Manikandan
Honored Contributor

Re: Missing /etc/nsswitch.conf after install completes

With the newer versions Just uncomment

save_file /etc/nsswitch.conf

in /opt/ignite/data/scripts/os_arch_post_l
Pete Randall
Outstanding Contributor

Re: Missing /etc/nsswitch.conf after install completes

weller
Advisor

Re: Missing /etc/nsswitch.conf after install completes

Hallo,

i have the sam problem. uncomment the line

# By default, this file will be constructed from the information
# in the config file. The starting point for the file is the
# netconf file in the archive (which is normally a newconfig version).
# To get the archive versions of this file, without any modification
# from information supplied in the Ignite-UX config files, uncomment
# the line below.
#
save_file /etc/rc.config.d/netconf <- this line
did not help
any idea ?
Thanks
Michail

weller
Advisor

Re: Missing /etc/nsswitch.conf after install completes

sorry

#
# /etc/nsswitch.conf file
# If you want this file to be put in place from the archive, uncomment
# the following line. By default, the file will be overwritten during
# the install and then removed at the end of the installation.
#
save_file /etc/nsswitch.conf #<-this line
#25022004
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

Pete,

I can't link to the doc. It asks me to login and I don't have a US login! Can I get this from the UK site?

Regards,

Dave.
Pete Randall
Outstanding Contributor

Re: Missing /etc/nsswitch.conf after install completes

Dave,

I don't know how to translate to the European URL, so I'll do what I'm not supposed to and post the contents (sorry, Dan - chastise me later, OK?):


============================================

PROBLEM

When using the ignite software to install the operating system, it
removes the nsswitch.conf file. I tried to copy an nsswitch.conf as
part of the post configuration portion. After the last reboot, the
system removed the nsswitch.conf.

1. Can scripts be added in the os_arch_post_l that allow for
configuration files to be copied from server to the client
since /etc/netconf image is not the archive image?

2. A script is called in post_config_script+=keyword, and, after
performing a cold install, the /etc/nsswitch.conf file is not
there.

When ignite is used to install, then /etc/nsswitch.conf is
there, and, it is still there after the NFS mount server is
released. However, a reboot removes the /etc/nsswitch.conf
file.

Why is nsswitch.conf being removed?


CONFIGURATION

Operating System - HP-UX
Version -10.20
Hardware System - HP 9000
Series -730

RESOLUTION

There was a known problem in version 1.03 regarding nsswitch.conf, and
it was fixed at version 1.07.

1. You can add additional scripts to run with the post_config_script+=
keyword, you wouldn't add 'scripts' into os_arch_post_l. For files
that are explicitly handled by os_arch_post_l you should stick with
that script, for other .conf files you can have those brought over
if you wish. /etc/rc.config.d/netconf is handled correctly by
os_arch_post_l in version 1.07 and higher.

This would be helpful for non-ethernet lans, (fddi or token rings).
Currently the protocols supported by the INSTALL kernel are: 10BaseT
100BaseT (PCI flavor on C and B class boxes where it is the built-in)
NIO-FDDI slider-FDDI 735/755

2. /opt/ignite/data/scripts/os_arch_post_l references nsswitch.conf

if [[ -f "/etc/nsswitch.conf" ]]; then
mv /etc/nsswitch.conf /etc/nsswitch.final
fi

If you want this file to be put in place from the archive, uncomment
the following line. By default, the file will be overwritten during
the install and then removed at the end of the installation.

mv /etc/nsswitch.conf /etc/nsswitch.final



============================================


Hope this helps,


Pete

Pete
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

Hi,

In /opt/ignite/data/scripts/os_arch_post_l I have uncommented :-

save_file /etc/nsswitch.conf

Also I have :-

case $source in
/etc/rc.config.d/netconf)
cp -p /etc/rc.config.d/netconf /etc/rc.config.d/netconf.final
return
;;
/etc/nsswitch.conf)
mv /etc/nsswitch.conf /etc/nsswitch.final
return
;;
esac

in os_arch_post_l

Version is :-

# $Header: /ignite/cold_fusion/src/scripts/os_arch_post_l 10.51 2003/02/14 17:13
:09 linz Exp $

I still don't have an nsswitch.conf after reboot. Any ideas?

Regards,

Dave.
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

Ignite is :-

B5725AA B.4.3.91 HP-UX Installation Utilities (Ignite-UX)

Regards,

Dave.
Pete Randall
Outstanding Contributor

Re: Missing /etc/nsswitch.conf after install completes

Dave,

My only remaining idea at this point is to open a call with HP. It seems like they have created a fix for a known problem but the fix doesn't work. I don't think there's much we can come up with to fix code that's broken!


Pete

Pete
T G Manikandan
Honored Contributor

Re: Missing /etc/nsswitch.conf after install completes

Dave,

Just check whether you are using those scripts,

which configuration check at /var/opt/ignite/INDEX

check in your configuration file as whether these scripts are used.
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

The only reference to scripts I have in /var/opt/ignite/INDEX is

scripts {
"/var/opt/ignite/scripts/standard_config.sh"
}

Which is my script.

I assumed /opt/ignite/data/scripts/os_arch_post_c and os_arch_post_l get run automatically

Maybe not?

Regards,

Dave.
T G Manikandan
Honored Contributor

Re: Missing /etc/nsswitch.conf after install completes

THis configuration file should have those scripts like

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

check the configuration script.
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

There's nothing else in the INDEX file.

In the client directory I found this :-

# grep -i post config.full
init _hp_custom_scripts="Current Post Configuration Scripts (HP-UX B.11.00 D370)"
post_load_cmd="
post_config_script="/var/opt/ignite/scripts/standard_config.sh"
#
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

If I add

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

how should the resulting config section look?

Regards,

Dave.
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

/var/opt/ignite/INDEX now ends like this :-

cfg "HP-UX B.11.00 D370" {
description "D370 install"
"/opt/ignite/data/Rel_B.11f.00/config"
"/opt/ignite/data/Rel_B.11.00/hw_patches_cfg"
"/var/opt/ignite/data/Rel_B.11.00/core_cfg"
"/var/opt/ignite/config.local"
"/var/opt/ignite/saved_cfgs/HP-UX_B.11.00_D370"
"/var/opt/ignite/data/Rel_B.11.00/T1471AA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/B4967AA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/B3701AA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/B3693AA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/B5725AA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/J2793B_cfg"
"/var/opt/ignite/data/Rel_B.11.00/B4474FA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/B3901BA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/B2491BA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/J4189-11001C_cfg"
"/var/opt/ignite/data/Rel_B.11.00/OnlineDiag_cfg"
"/var/opt/ignite/data/Rel_B.11.00/J2715BA_cfg"
"/var/opt/ignite/data/Rel_B.11.00/HWE1100_cfg"
"/var/opt/ignite/data/Rel_B.11.00/QPK1100_cfg"
}
scripts {
"/var/opt/ignite/scripts/standard_config.sh"
}
post_load_script = "/opt/ignite/data/scripts/os_arch_post_l"
post_config_script = "/opt/ignite/data/scripts/os_arch_post_c"

I'll run it and see what happens.

Regards,

Dave.
T G Manikandan
Honored Contributor
Solution

Re: Missing /etc/nsswitch.conf after install completes

Normally it gets inside the configuration script
yours being,
/var/opt/ignite/scripts/standard_config.sh
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

Ok, I have the entries at the end of /var/opt/ignite/scripts/standard_config.sh :-

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

The install fails with the "FAILURE" message. install.log shows :-

standard_config.sh done.
/tmp/ign_configure/cfg_script/var/opt/ignite/scripts/standard_config.sh[297]: po
st_load_script: not found.
/tmp/ign_configure/cfg_script/var/opt/ignite/scripts/standard_config.sh[298]: po
st_config_script: not found.
ERROR: The script: "/var/opt/ignite/scripts/standard_config.sh" failed, exit
code was 127.


* Run_Postconfigure_Scripts: Error

The files exist :-


# ll /opt/ignite/data/scripts/os_arch_post_l
-r-xr--r-- 1 bin bin 21357 Feb 25 13:50 /opt/ignite/data/scripts/os_arch_post_l
# ll /opt/ignite/data/scripts/os_arch_post_c
-r-xr--r-- 1 bin bin 17007 May 16 2003 /opt/ignite/data/scripts/os_arch_post_c


Help!!!

Regards,

Dave.
David Burgess
Esteemed Contributor

Re: Missing /etc/nsswitch.conf after install completes

After all that I've managed to get it working without using the post scripts. I just changed

rcp -p iguxserv:/etc/nsswitch.conf /etc/nsswitch.conf

to

rcp -p iguxserv:/etc/nsswitch.conf /etc/nsswitch.final

and then let Ignite sort it out for itself.

Thanks for all your help.

Regards,

Dave.