Operating System - HP-UX
1833772 Members
2284 Online
110063 Solutions
New Discussion

Re: strange issue with bootptab and resolv.conf

 
rleon
Regular Advisor

strange issue with bootptab and resolv.conf

I have created a new make_sys_image golden image.
It is on the ignite server and I am testing it out.

It boots fine and the golden image is fine.

The problem is that my resolv.conf keeps disappearing. Even after it is created after the install is done. After each reboot it disappears.

The odd part is that when I comment out the server entry from /etc/bootptab on the ignite server. The resolv.conf file does not disappear.

Any ideas why this would be happening?


4 REPLIES 4
James George_1
Trusted Contributor

Re: strange issue with bootptab and resolv.conf

Hi

See this from a HP posting on ignite issues.

8-2. Q: The /etc/nsswitch.conf and /etc/resolv.conf files from my archive do not end up on the client. Why?

A: There are certain files which Ignite-UX modifies during the configuration process, among them resolv.conf and nsswitch.conf. To end up with the archive versions of these modified files on your clients, Ignite-UX provides two scripts called os_arch_post_l and os_arch_post_c to aid you. These scripts are delivered in the /opt/ignite/data/scripts directory. You will probably only need to modify os_arch_post_l to achieve your goal. Copy this file to a new name in the same directory and then edit it searching on resolv.conf and nsswitch.conf for instructions regarding what must be changed.

After the script has been changed, modify your configuration file that describes the archive so that it points to the new script.


Here is the link to an Ignite FAQ . which will answer all your ignite questions.

http://docs.hp.com/en/IUX/faq.html#d0e1985

Rgds / James



forum is for techies .....heaven is for those who are born again !!
Todd McDaniel_1
Honored Contributor

Re: strange issue with bootptab and resolv.conf

one other option as well to aid your post install script.

Before you take a golden image, copy those files so they wont be overwritten or removed.

Or make a config directory with files like these in it, not in the same path as /etc.
Unix, the other white meat.
rleon
Regular Advisor

Re: strange issue with bootptab and resolv.conf

Thanks for the response but this is beyond the post install.
The sever has installed, booted.

resolv.conf is edited then the server is rebooted. And it keeps changing upon reboot.

Richard

rleon
Regular Advisor

Re: strange issue with bootptab and resolv.conf

I found it ..

in /etc/rc.config.d/netconf DHCP was enabled.

DHCP_ENABLE[0]=1


Thanks !!