Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-407

RPM scriptlets broken because module name is not valid

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            brian Brian Murrell (Inactive)
            morrone Christopher Morrone
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: