Hallo,
I 'm trying to install the file /etc/resolv.conf on a linux 9.1 client
with autoinstallation.
My xml-file looks like this:
1)
<configure>
<networking>
<dns>
true
<domain>zam.kfa-juelich.de</domain>
<hostname>zam724</hostname>
<nameservers config:type="list">
<nameserver>134.94.80.2</nameserver>
<nameserver>134.94.80.3</nameserver>
<nameserver>134.94.100.7</nameserver>
</nameservers>
<searchlist config:type="list">
<search>zam.kfa-juelich.de</search>
<search>kfa-juelich.de</search>
<search>fz-juelich.de</search>
</searchlist>
</dns>
<scripts>
<post-scripts config:type="list">
<script>
<filename>post.sh</filename>
<interpreter>shell</interpreter>
<source>
....
During executing post.sh-script I listed /etc/resolv.conf.
It is installed with searchline and nameserver , but without
line " domain zam.kfa-juelich.de"
2)
to prevent several daemons from changing resolv.conf
I inserted:
<sysconfig config:type="list">
XNTPD_INITIAL_NTPDATE
xntp
134.94.80.2
MODIFY_RESOLV_CONF_DYNAMICALLY
/etc/sysconfig/network/config
no
</sysconfig>
....
-->
/etc/sysconfig/network/config is installed with line
MODIFY_RESOLV_CONF_DYNAMICALLY="no"
a)
/etc/resolv.conf is linked to a file mounted readonly by nfs in post.sh
which is valid to all our
clients ,
without 2)
--> link is overwritten,
resolv.conf is changed by dhcpd , pay attention to length 0 of
/etc/resolv.conf.saved.by.dhcpcd
zam724:~ # ls -l /etc/reso*
-rw-r--r-- 1 root root 1321 Aug 5 12:42 /etc/resolv.conf
-rw-r--r-- 1 root root 125 Aug 5 12:20 /etc/resolv.conf.install
-rw-r--r-- 1 root root 0 Aug 5 12:42 /etc/resolv.conf.saved.by.dhcpcd
b)
/etc/resolv.conf is installed as a link to a file mounted ro by nfs in
post.sh and
with 2) :MODIFY_RESOLV_CONF_DYNAMICALLY="no"
-->
When system boots for the first time, there are the following
errormessages on screen and
/etc/resolv.conf becomes an empty file!!!!!
grep resolv /var/log/*
boot.msg:Cleaning up using /sbin/modify_resolvconf:
boot.msg:touch: cannot touch `/etc/resolv.conf': No such file or directory
boot.msg:Deleted the following stale backups: removed
`/etc/resolv.conf.saved.by.yast2'
boot.msg:sed: can't read /etc/resolv.conf: No such file or directory
boot.msg:cat: /etc/resolv.conf: No such file or directory
messages:Aug 4 11:24:15 linux modify_resolvconf: Service yast2 modified
/etc/resolv.conf. See info block in this file
messages:Aug 4 11:25:59 linux modify_resolvconf: Service yast2 tried to
modify resolver configuration, but it
messages:Aug 4 11:25:59 linux modify_resolvconf: was not modified due
to MODIFY_RESOLV\NAMED_CONF_DYNAMICALLY=no
messages:Aug 4 11:44:50 linux modify_resolvconf: Service dhcpcd tried
to modify resolver configuration, but it
messages:Aug 4 11:44:50 linux modify_resolvconf: was not modified due
to MODIFY_RESOLV\NAMED_CONF_DYNAMICALLY=no
Thanks for your answers and improvements
+----------------------------------------------------------------------+
| Marianne Frerichs |
| Zentralinstitut fuer Angewandte Mathematik |
| Forschungszentrum Juelich GmbH |
| D-52425 Juelich |
| Phone: +49 02461 61-6432 |
| Email: M.Frerichsfz-juelich.de Fax: +49 02461 61-6656 |
+----------------------------------------------------------------------+