[Bug 448095] Re: resolvconf starts after ifupdown, does not pick the dns-nameserver and dns-search lines up from /etc/network/interfaces
Sander van Grieken
sander at 3v8.net
Fri May 7 14:15:08 BST 2010
Since I haven't been looking at this bug for a while, I'll just dump my
ideas of what IMO should be done in the postinst (and maybe other)
package scripts, before I forget them.
There's a couple of situations that should be handled:
a) installing resolvconf while being in a non-resolvconf state
b) upgrading resolvconf that has it's data in another place than the new resolvconf expects it to be (NOTE: which isn't necessarily /lib/init/rw! It's actual location is defined in /etc/default/resolvconf)
In situation A, the problem is that resolvconf doesn't have the
information yet to populate resolv.conf, so it should not be activated
until reboot, or at least until networking is restarted. It's of course
possible to already set up the right /etc/resolv.conf symlink, but the
active /etc/resolv.conf should be copied into resolvconf's symlink
target file verbatim, and should not be re-generated by resolvconf
(possibly by implicitly disabling updates). This is a problem that
already exists with the 'official' resolvconf, so it's not a new
problem.
In situation B I think we should copy the 'interfaces' folder from the
old location over to the new location, maybe in combination with some
validity checks to see if the information there matches the active
network interfaces. The place of the old location might be deduced from
the /etc/resolv.conf symlink, and/or from the old default location under
/var. Also maybe cleanup the files at the old location.
If I missed any other situations that might give rise to problems,
please add them to this bugreport!
--
resolvconf starts after ifupdown, does not pick the dns-nameserver and dns-search lines up from /etc/network/interfaces
https://bugs.launchpad.net/bugs/448095
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
Status in “ifupdown” package in Ubuntu: Won't Fix
Status in “resolvconf” package in Ubuntu: Confirmed
Bug description:
Binary package hint: resolvconf
ifdown -a ; ifup -a fixes the problem after a reboot.
ProblemType: Bug
Architecture: i386
Date: Sat Oct 10 17:55:06 2009
DistroRelease: Ubuntu 9.10
Package: resolvconf 1.44ubuntu1
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-13.43-generic
SourcePackage: resolvconf
Uname: Linux 2.6.31-13-generic i686
More information about the Ubuntu-sponsors
mailing list