The resolvconf runtime directories are created in the resolvconf package
preinst and at boot, "by" the resolvconf upstart job.
start on mounted MOUNTPOINT=/run
pre-start script
mkdir -p /run/resolvconf/interface
touch /run/resolvconf/postponed-update
resolvconf --enable-updates
end script
The resolvconf package postinst sets up the /etc/resolv.conf symlink
then enables, triggers and finally performs an update.
As far as I can see there is no need for the postinst to run the upstart
job. I don't see why it needs to do "invoke-rc.d resolvconf start".
The Debian version of the package does not do "invoke-rc.d resolvconf
start" and the Debian version of the package seems to work properly.
Thus I don't understand this changelog item (1.63ubuntu2):
* Correct wrong use of dh_installinit --upstart-only, which is only for
upstart jobs that were never init scripts before; and don't pass
--noscripts, because we really do want the upstart job run on install.
or (1.63ubuntu3):
* Move the #DEBHELPER# token in debian/postinst to after the resolv.conf
symlink is set, so the init script can actually start (since it expects
/etc/resolv.conf to be a symlink).
Can someone explain to me why the initscript, which is a symlink to
/lib/init/upstart-job, has to be run in the postinst?
If it turns out that the "invoke-rc.d resolvconf start" isn't needed
then it should be removed, and once it's removed it won't fail.
But the question remains: Why does it fail?
It doesn't fail when I run it from the command line:
# invoke-rc.d resolvconf start ; echo retval $?
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service resolvconf start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start resolvconf
resolvconf start/running
retval 0
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/929552
Title:
package resolvconf 1.63ubuntu7 failed to install/upgrade: Unterprozess
installiertes post-installation-Skript gab den Fehlerwert 1 zurück
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/929552/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs