Bug 461734

Summary: Package nfs-client is not removable
Product: [openSUSE] openSUSE 11.1 Reporter: Marko Schugardt <marko.schugardt>
Component: NetworkAssignee: Neil Brown <nfbrown>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: behlert, bluedzins, markus
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: .
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: New /etc/init.d/nfs script.

Description Marko Schugardt 2008-12-22 20:37:43 UTC
Package: nfs-client-1.1.3-14.1@i586

# rpm -e nfs-client
..unused
error: %preun(nfs-client-1.1.3-14.1.i586) scriptlet failed, exit status 6
Comment 1 Markus Gaugusch 2009-01-05 10:52:38 UTC
When removed with the --noscripts option, the file /lib/mkinitrd/setup/81-nfs.sh is not removed and causes mkinitrd to fail.
Comment 2 Marcus Meissner 2009-01-09 13:22:01 UTC
%preun -n nfs-client
%stop_on_removal nfs

stop script return error code 6, but this should not really be a problem?
Comment 3 Neil Brown 2009-01-30 03:18:34 UTC
*** Bug 450940 has been marked as a duplicate of this bug. ***
Comment 4 Neil Brown 2009-01-30 03:20:48 UTC
This bug has been fixed since the 11.1 release

I suspect it is worth releasing an update for 11.1.

Anja: Does this seem appropriate for an update?  If so, can I have a 
tracking number please?
Comment 7 Neil Brown 2009-02-06 03:26:53 UTC
Created attachment 270660 [details]
New /etc/init.d/nfs script.
Comment 8 Neil Brown 2009-02-06 03:27:52 UTC
I have submitted an update for openSUSE 11.1.
It replaces the /etc/init.d/nfs script with the one above. 
If you copy that in place you will be able to remove 'nfs-client'.

Thanks.
Comment 9 Swamp Workflow Management 2009-02-17 10:45:27 UTC
Update released for: nfs-client, nfs-doc, nfs-kernel-server, nfs-utils
Products:
openSUSE 11.1 (debug, i586, ppc, x86_64)
Comment 10 Neil Brown 2009-02-19 10:02:43 UTC
*** Bug 467189 has been marked as a duplicate of this bug. ***
Comment 11 Marko Schugardt 2009-02-19 11:03:53 UTC
(In reply to comment #8)
> I have submitted an update for openSUSE 11.1.
> It replaces the /etc/init.d/nfs script with the one above. 
> If you copy that in place you will be able to remove 'nfs-client'.
> 
> Thanks.

This workaround didn't work for me. I suggest to do it this way:

1.Remove the old package (from openSUSE Goldmaster):
rpm -e --noscripts nfs-client
2.Install the new package (from openSUSE Update repo):
zypper in nfs-client
3.Remove the new nfs-client package again:
rpm -e nfs-client
Comment 12 Marko Schugardt 2009-02-19 11:41:00 UTC
(In reply to comment #1)
> When removed with the --noscripts option, the file
> /lib/mkinitrd/setup/81-nfs.sh is not removed and causes mkinitrd to fail.

See comment #11.