Comment 5 for bug 448095

Revision history for this message
Sander van Grieken (sander-vangrieken) wrote :

Hi,

I made an upstart script, like Scott suggested, which initialises the resolvconf directory structure. I have it start pre-udev, so it's sure to fire before ifup. It replaces the sysv link in rcS.d, but I also made some changes to resolvconf itself, basically I moved the resolvconf run directory to /lib/init/rw/, to have the earliest available writable filesystem from the start of the boot process.

Anyway, the upstart script is attached, and put the following lines in /sbin/resolvconf

[ -e /etc/default/resolvconf ] && . /etc/default/resolvconf
RUN_DIR=${RESOLVCONF_RUNDIR:=/lib/init/rw/resolvconf}

(uncomment the old RUN_DIR line of course)

and in /etc/resolvconf/update.d/libc :

[ -e /etc/default/resolvconf ] && . /etc/default/resolvconf
DYNAMICRSLVCNFFILE="${RESOLVCONF_RUNDIR:=/lib/init/rw/resolvconf}/resolv.conf"

(again uncomment the old var)