Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Lustre 2.1.0
-
None
-
RHEL 6.1
-
3
-
4934
Description
The lustre-modules rpm is neither upgradeable nor uninstallable without forcing on RHEL6.1 (probably all redhat systems). In the %preun script the the name of the lustre-modules rpm is missing the architecture from the end of the name. The scriptlet does the following:
rpm -ql %{name}-modules-%{version}-%{release}
But rpm will only allow one of the following forms:
rpm -ql %{name}-modules
rpm -ql %{name}-modules-%{version}
rpm -ql %{name}-modules-%{version}-%{release}.%{_arch}
The %post script has the same problem, but the subsequent commands in the scripts hide the error code and allow the script to exit normally.
I am not sure why no one else noticed this, so I made a patch that only fixes this for %{_vendor}==redhat. But it may very well be needed on all architectures.