Bug 1027235 - warning: file /var/lib/rpcbind: remove failed: No such file or directory
warning: file /var/lib/rpcbind: remove failed: No such file or directory
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: rpcbind (Show other bugs)
19
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Steve Dickson
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-06 07:09 EST by Marcos Mello
Modified: 2014-10-23 13:40 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-10-23 13:40:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marcos Mello 2013-11-06 07:09:46 EST
rm -rf /var/lib/rpcbind/* on %preun will let RPM do its job without complain.

------

D: %preun(rpcbind-0.2.1-0.fc19.x86_64): scriptlet start
D: %preun(rpcbind-0.2.1-0.fc19.x86_64): execv(/bin/sh) pid 2974
+ '[' 0 -eq 0 ']'
+ /bin/systemctl --no-reload disable rpcbind.service
+ /bin/systemctl stop rpcbind.service
+ /usr/sbin/userdel rpc
+ /usr/sbin/groupdel rpc
+ :
+ rm -rf /var/lib/rpcbind
D: %preun(rpcbind-0.2.1-0.fc19.x86_64): waitpid(2974) rc 2974 status 0
  Erasing    : rpcbind-0.2.1-0.fc19.x86_64                                  1/2 
D: erase      000700  0 (   0,   0)     0 /var/lib/rpcbind
warning: file /var/lib/rpcbind: remove failed: No such file or directory
D: erase      100644  1 (   0,   0)  2388 /usr/share/man/man8/rpcinfo.8.gz
D: erase      100644  1 (   0,   0)  1581 /usr/share/man/man8/rpcbind.8.gz
D: erase      100644  1 (   0,   0)   112 /usr/share/doc/rpcbind-0.2.1/README
D: erase      100644  1 (   0,   0)  9045 /usr/share/doc/rpcbind-0.2.1/ChangeLog
D: erase      100644  1 (   0,   0)   106 /usr/share/doc/rpcbind-0.2.1/AUTHORS
D: erase      040755  2 (   0,   0)  4096 /usr/share/doc/rpcbind-0.2.1
D: erase      100755  1 (   0,   0) 28496 /usr/sbin/rpcinfo
D: erase      100644  1 (   0,   0)   132 /usr/lib/systemd/system/rpcbind.socket
D: erase      100644  1 (   0,   0)   259 /usr/lib/systemd/system/rpcbind.service
D: erase      100755  1 (   0,   0) 58112 /sbin/rpcbind
D: erase      100644  1 (   0,   0)    73 /etc/sysconfig/rpcbind
D: %postun(rpcbind-0.2.1-0.fc19.x86_64): scriptlet start
D: %postun(rpcbind-0.2.1-0.fc19.x86_64): execv(/bin/sh) pid 2984
+ /bin/systemctl daemon-reload
+ '[' 0 -ge 1 ']'
D: %postun(rpcbind-0.2.1-0.fc19.x86_64): waitpid(2984) rc 2984 status 0
Comment 1 Steve Dickson 2014-10-23 13:40:12 EDT
(In reply to Marcos Mello from comment #0)
> rm -rf /var/lib/rpcbind/* on %preun will let RPM do its job without complain.
There is one:

%preun
%systemd_preun rpcbind.service rpcbind.socket
if [ $1 -eq 0 ]; then
    /usr/sbin/userdel  rpc 2>/dev/null || :
    /usr/sbin/groupdel rpc 2>/dev/null || :
    /usr/bin/rm -f /var/lib/rpcbind/*
fi

Note You need to log in before you can comment on or make changes to this bug.