Operating System - HP-UX
1753415 Members
7289 Online
108793 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.