Public bug reported:

Some third-party software requires the existence of file /etc/redhat-
release in order to install on Ubuntu and creates it in the pre-install
stage.  However, this file is also used by sosreport to identify a Red
Hat system [1].  This causes sosreport to fail as it tries to collect
Red Hat-specific information from a Ubuntu system.  Is there a better
way to identify a Red Hat system?

[1]:
===
    @classmethod
    def check(self):
        """This method checks to see if we are running on RHEL. It returns True
        or False."""
        return (os.path.isfile('/etc/redhat-release')
                and not os.path.isfile('/etc/fedora-release'))
===

** Affects: sosreport (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390151

Title:
  Distro check for Red Hat is not optimal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1390151/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to