Whamcloud - gitweb
LU-407 Fix lustre-modules rpm name in spec file.
RHEL and Fedora kernels include ".%{_arch}" in the kernel's version
string. Since Lustre includes the kernel version in its rpms, it
can appear that a double architecture name appears at the end. Really
one is from the kernel, and one is from Lustre. Trying to change that
is probably more trouble than it is worth.
This seems to cause problems with rpm's understanding of rpm names. To
fix that this patch takes Andreas's suggestion of grep'ing the full
rpm name from "rpm -q kernel-modules".
We also add "|| true" to the last line of the %preun scriptlet so that
failure does not aport installation.
Finally, we also remove the redundant greps in the postun scriptlet.
Change-Id: I2c71e853e28ec6e0907eb4ea7c3205ca6e5dd873
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/934
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>