Red Hat Bugzilla – Bug 240225
nfs-utils postuninstall scriptlet failure on upgrade
Last modified: 2008-08-02 19:40:36 EDT
Upgrading from nfs-utils-1.0.10-7.fc6.x86_64 to nfs-utils-1.0.10-10.fc6.x86_64
when nfs is not running results in:
error: %postun(nfs-utils-1.0.10-7.fc6.x86_64) scriptlet failed, exit status 1
$ rpm -q nfs-utils
This is because /etc/init.d/nfs condrestart returns an error code (1) if nfs is
# /etc/init.d/nfs status
rpc.mountd is stopped
nfsd is stopped
# /etc/init.d/nfs condrestart
# echo $?
Fix: make nfs condrestart exit with 0 if nfs is not running.
*** Bug 240268 has been marked as a duplicate of this bug. ***
Fixed in nfs-utils-1.0.10-11
*** Bug 240979 has been marked as a duplicate of this bug. ***
> Fixed in nfs-utils-1.0.10-11
Well, the same bug hit during an upgrade from nfs-utils-1.0.12-4.fc7
to nfs-utils-1.0.12-6.fc8. The later has in postuninstall
/etc/rc.d/init.d/nfs condrestart > /dev/null
/etc/rc.d/init.d/nfslock condrestart > /dev/null
and the "nfslock" happens to return with status 0 regardless if
it nfslock service was running or not so everything is apparently
fine. But the previous line will return 1 if nfs was not running
so if that will show up at the end then we are screwed.
Why not to add an explicit terminating 'return 0' and not to rely on
how scripts in /etc/rc.d/init.d/ were edited at the moment?
Fedora apologizes that these issues have not been resolved yet. We're
sorry it's taken so long for your bug to be properly triaged and acted
on. We appreciate the time you took to report this issue and want to
make sure no important bugs slip through the cracks.
If you're currently running a version of Fedora Core between 1 and 6,
please note that Fedora no longer maintains these releases. We strongly
encourage you to upgrade to a current Fedora release. In order to
refocus our efforts as a project we are flagging all of the open bugs
for releases which are no longer maintained and closing them.
If this bug is still open against Fedora Core 1 through 6, thirty days
from now, it will be closed 'WONTFIX'. If you can reporduce this bug in
the latest Fedora version, please change to the respective version. If
you are unable to do this, please add a comment to this bug requesting
Thanks for your help, and we apologize again that we haven't handled
these issues to this point.
The process we are following is outlined here:
We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.
And if you'd like to join the bug triage team to help make things
better, check out http://fedoraproject.org/wiki/BugZappers