2008.1, configuration issues
Some progress on the network issues, but DAMN they made it difficult
this time. My first goal was to get resolvconf to stop stomping on my
/etc/resolv.conf file. These machines have static IP addresses and
static names and there is just no reason to ever rewrite that file.
0. chkconfig --del resolvconf
reboot, it still stomped it.
1. Try to remove resolvconf:
rpm -e resolvconf
can't be done, it is a prerequisite for initscripts
2. Try to disable it everywhere it might be called:
in /etc/init.d/
% diff resolvconf resolvconf.dist
24,45d23
< #######################
< # MATHOG 30-JUN-2008.
< # Add a method for disabling resolvconf, by putting DISABLE_RESOLVCONF
in network.
< # Also modified /etc/sysconfig/network-scripts/init-functions to look
for this and do NOTHING
< # when it sees it. Note that it says "success" no matter what the
command was that called
< # this script. The variable must be an uppercase YES, nothing else
will work.
<
< if [ -f /etc/sysconfig/network ]; then
< . /etc/sysconfig/network
< if [ "$DISABLE_RESOLVCONF" = "YES" ]
< then
< rm -f "$ENABLE_UPDATES_FLAGFILE"
< gprintf "resolvconf (disabled by sysconfig/network)"
< success
< echo
< exit 0
< fi
< fi
< #################################################
<
<
<
Added this line to /etc/sysconfig/network
DISABLE_RESOLVCONF=YES
Made this change:
% diff network-functions network-functions.dist
425,426d424
< if [ "$DISABLE_RESOLVCONF" != "YES" ]
< then
468d465
< fi
473,474d469
< if [ "$DISABLE_RESOLVCONF" != "YES" ]
< then
481d475
< fi
As far as I could tell that should have kept /sbin/resolvconf from ever
being called by the init scripts. Restored /etc/resolv.conf and
rebooted, and, it was STILL stomped, but this time by something that
didn't bother to log the change in /var/log/messages!
3. Reboot safe mode, really pull the beast's teeth:
% cp /sbin/resolvconf /sbin/resolvconf.dist
% cat >/sbin/resolvconf <<EOF
#!/bin/bash
echo "resolvconf was called and is being ignored"
EOF
Restore /etc/resolv.conf.
Reboot, and, you guessed it, something stomped on the file again, again
with no log. The #$&#(&W GHOST of /sbin/resolvconf perhaps???
Choice words were uttered.
4. Reboot to safe mode.
Try using mcc to configure a static interface. It trashed /etc/hosts,
merging the
127.0.0.1 localhost
aaa.bbb.ccc.ddd node1.bio.caltech.edu node1.caltech.edu node1
lines, moving some from the second onto the first. It did NOT touch
resolv.conf, which was still empty at this point. Tried this:
service network stop
service network start
cp spare_resolv.conf /etc/resolv.conf
cp spare_hosts /etc/hosts
service network stop
service network start
and finally, at this point whatever it was left both files alone.
Rebooted twice and it came up both times. (This is with pinit, to avoid
the race issues in the multithreaded init.)
My distinct impression is that Mandriva 2008.1 is pretty darn hostile
for for static network configurations.
Now to figure out why the tilde expansion isn't working for names pulled
from the YP passwd map.
Thanks,
David Mathog
|