[Resolvconf-devel] Bug#605215: resolvconf: if-down.d script does not remove udhcpc interface files

Jeff King peff at peff.net
Sun Nov 28 07:08:46 UTC 2010


Package: resolvconf
Version: 1.46
Severity: normal
Tags: patch

The udhcpc lease script will hand resolvconf interface names like
"eth0.udhcpc". It has the proper matching "deconfig" section in its
script to remove "eth0.udhcpc", but like dhclient, this tends not to get
called, as ifdown simply kills the udhcpc process.

This means that doing "ifup eth0; ifdown eth0" will leave cruft in
resolvconf's run/interface directory.

We already have a workaround in /etc/network/if-down.d/resolvconf to
handle the dhclient case, but it removes just $IFACE, not $IFACE.udhcpc.
The patch below adds a similar workaround for this case.

Alternatively, should the udhcpc script be changed to give resolvconf
just the interface name?

--- /etc/network/if-down.d/resolvconf.orig      2010-11-28 02:04:16.822464002 -0500
+++ /etc/network/if-down.d/resolvconf   2010-11-28 02:03:48.506464002 -0500
@@ -19,6 +19,7 @@
                # Delete record left behind by TERMinated dhclient
                # This works around bug #196865
                /sbin/resolvconf -d "${IFACE}"
+               /sbin/resolvconf -d "${IFACE}.udhcpc"
                ;;
 esac
 

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc3+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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.36     Debian configuration management sy
ii  lsb-base                      3.2-26     Linux Standard Base 3.2 init scrip

resolvconf recommends no packages.

resolvconf suggests no packages.

-- debconf information:
* resolvconf/downup-interfaces:
* resolvconf/linkify-resolvconf: true
* resolvconf/link-tail-to-original: false





More information about the Resolvconf-devel mailing list