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

On upgrade from an older version of resolvconf, 1.37, which
uses /dev/shm/resolvconf, to the latest version 1.39, I
suspect this postinst command

    ln -fs /lib/init/rw/resolvconf /etc/resolvconf/run

doesn't do the right thing.  Previously /etc/resolvconf/run
is a symlink to the /dev/shm/resolvconf directory, so on my
system I end up with a symlink
/etc/resolvconf/run/resolvconf => /lib/init/rw/resolvconf,
instead of it overwriting the existing symlink and creating
/etc/resolvconf/run => /lib/init/rw/resolvconf.  Now there's
a duplicate copy in /lib/init/rw/resolvconf which isn't used
(but disappears on reboot of course).  The symlink
/etc/resolvconf/run => /dev/shm/resolvconf persists across
reboot until I manually change it and re-run
``/etc/init.d/resolvconf start''.


The -T flag to `ln', seems like it would do the right thing.

It's hard to believe no one else ran into this since version
1.38 (2007-12-31) if it's a legit bug, so it's possible I
have a weird config... Anyway the -T flag probably won't
hurt.

Thanks, 
Karl



diff -u /var/lib/dpkg/info/resolvconf.postinst /tmp/buffer-content-15225_JX
--- /var/lib/dpkg/info/resolvconf.postinst      2008-03-13 05:14:29.000000000 
-0700
+++ /tmp/buffer-content-15225_JX        2008-04-11 05:00:51.000000000 -0700
@@ -35,7 +35,7 @@
                        report_info "Migrating /dev/shm/resolvconf to 
/lib/init/rw/resolvconf"
                        F="$(echo /dev/shm/resolvconf/*)"
                        [ "$F" ] && [ "$F" != '/dev/shm/resolvconf/*' ] && cp 
-a /dev/shm/resolvconf/* /lib/init/rw/resolvconf
-                       ln -sf /lib/init/rw/resolvconf /etc/resolvconf/run
+                       ln -Tsf /lib/init/rw/resolvconf /etc/resolvconf/run
                fi
        fi
        # Delete it if it isn't a directory or a link to one

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages resolvconf depends on:
ii  coreutils                     6.10-6     The GNU core utilities
ii  debconf [debconf-2.0]         1.5.20     Debian configuration management sy
ii  lsb-base                      3.2-7      Linux Standard Base 3.2 init scrip

resolvconf recommends no packages.

-- debconf information:
  resolvconf/bad-pppoeconf-hook:
  resolvconf/downup-interfaces:
  resolvconf/link-tail-to-original: false
  resolvconf/bad-pppconfig-hook:
  resolvconf/linkify-resolvconf: true
  resolvconf/disable-bad-hooks: true
  resolvconf/bad-xisp-hook:



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to