[Resolvconf-devel] Bug#651801: resolvconf: /etc/resolv.conf is a broken link after reboot
Eike von Seggern
eikevons at yahoo.de
Mon Dec 12 20:55:39 UTC 2011
Package: resolvconf
Version: 1.62
Followup-For: Bug #651801
Dear Thomas,
I have the same issue as Teodor:
After a reboot my wireless interface is up and working but
/etc/resolv.conf points to /run/resolvconf/resolv.conf, which does not
exist.
After a reboot the layout of /etc/resolvconf/ is
# ls -Rl /etc/resolvconf/
/etc/resolvconf/:
total 16
-rw-r--r-- 1 root root 116 Aug 13 2009 interface-order
drwxr-xr-x 2 root root 4096 Dec 12 09:40 resolv.conf.d
lrwxrwxrwx 1 root root 15 Jun 20 12:34 run -> /run/resolvconf
drwxr-xr-x 2 root root 4096 Sep 22 09:51 update-libc.d
drwxr-xr-x 2 root root 4096 Dec 12 09:40 update.d
/etc/resolvconf/resolv.conf.d:
total 12
-rw-r--r-- 1 root root 0 Aug 9 2006 base
-rw-r--r-- 1 root root 151 Aug 9 2006 head
-rw-r--r-- 1 root root 118 Nov 18 2009 original
-rw-r--r-- 1 root root 220 Jun 1 2011 tail
/etc/resolvconf/update-libc.d:
total 4
-rwxr-xr-x 1 root root 188 Sep 4 17:08 fetchmail
/etc/resolvconf/update.d:
total 16
-rwxr-xr-x 1 root root 3601 Jan 12 2011 bind
-rwxr-xr-x 1 root root 3195 Dec 6 2008 dnscache
-rwxr-xr-x 1 root root 5095 Nov 30 19:05 libc
and /run/resolvconf/
# ls -Rl /run/resolvconf/
/run/resolvconf/:
total 0
-rw-r--r-- 1 root root 0 Dec 12 21:20 enable-updates
drwxr-xr-x 2 root root 40 Dec 12 21:37 interface
/run/resolvconf/interface:
total 0
I think the problem is that /sbin/resolvconf silently does nothing if it
is called with empty input like:
# echo -n | resolvconf -a wlan0
and /run/resolvconf/resolv.conf does not exist or contains no
`nameserver' directives.
However, if /run/resolvconf/resolv.conf does contain a `nameserver'
directive
# echo -n | resolvconf -a wlan0
causes /run/resolvconf/resolv.conf to be rewritten.
I hope that helps in tracking down this problem.
Kind regards
Eike
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (600, 'testing'), (204, 'unstable'), (151, 'stable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.1.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages resolvconf depends on:
ii debconf [debconf-2.0] 1.5.41
ii initscripts 2.88dsf-13.13
ii lsb-base 3.2-28
resolvconf recommends no packages.
resolvconf suggests no packages.
-- debconf information:
* resolvconf/linkify-resolvconf: true
resolvconf/reboot-recommended-after-removal:
* resolvconf/downup-interfaces:
resolvconf/link-tail-to-original: false
More information about the Resolvconf-devel
mailing list