Public bug reported:
nfs-common's postinst script fails if no upstart-enabled init is present. Such
situation occurs during initial installation from CD.
Which means that if nfs-common is included on an install CD, it makes the whole
installation fail, as it cannot be "configured"
The problem is due to the following code snippet:
# Automatically added by dh_installinit
if [ -x "/etc/init.d/statd" ]; then
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
invoke-rc.d statd $_dh_action || exit $?
fi
# End automatically added section
Due to the || exit $?, any failure to start a service becomes fatal.
For comparison, this is how samba handles the same:
# Automatically added by dh_installinit
if [ -e "/etc/init/smbd.conf" ]; then
# start fails if already running
start smbd || :
fi
# End automatically added section
The || : causes the failure to be silently ignored, which is the correct
response if the current environment does not support starting of
services. The services will be started in due time when the installation
is completely done, after the final reboot.
** Affects: nfs-utils (Ubuntu)
Importance: Undecided
Status: New
--
nfs-common's postinst script fails if no upstart running
https://bugs.launchpad.net/bugs/666528
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs