Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2943

Fix os.name detection of AlmaLinux

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • FACT 3.y
    • FACT 3.14.17
    • None
    • Hide

      "os.name" should report "AlmaLinux" instead of "RedHat":

      $ facter os
      {
        architecture => "x86_64",
        distro => {
          codename => "PurpleManul",
          description => "AlmaLinux release 8.3 Beta (Purple Manul)",
          id => "AlmaLinux",
          release => {
            full => "8.3",
            major => "8",
            minor => "3"
          },
          specification => ":core-4.1-amd64:core-4.1-noarch"
        },
        family => "RedHat",
        hardware => "x86_64",
        name => "AlmaLinux",
        release => {
          full => "8.3",
          major => "8",
          minor => "3"
        },
        selinux => {
          enabled => false
        }
      }
      

       

      Show
      " os.name " should report " AlmaLinux " instead of " RedHat ": $ facter os { architecture => "x86_64", distro => { codename => "PurpleManul", description => "AlmaLinux release 8.3 Beta (Purple Manul)", id => "AlmaLinux", release => { full => "8.3", major => "8", minor => "3" }, specification => ":core-4.1-amd64:core-4.1-noarch" }, family => "RedHat", hardware => "x86_64", name => "AlmaLinux", release => { full => "8.3", major => "8", minor => "3" }, selinux => { enabled => false } }  
    • Night's Watch
    • NW - 2021-03-17
    • Needs Assessment
    • 44058
    • 1
    • Enhancement
    • Facter 3 can now detect AlmaLinux. Contributed by cschug
    • Needs Assessment

    Description

      AlmaLinux is an upcoming Linux distribution currently in public Beta, released on 2021-02-01. It aims to be a 1:1 compatible clone of Red Hat Enterprise Linux filling the gap of the CentOS Linux, which has been EoL'ed as downstream product.

      Right now as of Facter 3.14.15, AlmaLinux is correctly detected as member of the Red Hat-family ("os.family" resolves to "RedHat") but the os.name fact on AlmaLinux incorrectly resolves to "RedHat" instead of "AlmaLinux":

      $ facter os
      {
        architecture => "x86_64",
        distro => {
          codename => "PurpleManul",
          description => "AlmaLinux release 8.3 Beta (Purple Manul)",
          id => "AlmaLinux",
          release => {
            full => "8.3",
            major => "8",
            minor => "3"
          },
          specification => ":core-4.1-amd64:core-4.1-noarch"
        },
        family => "RedHat",
        hardware => "x86_64",
        name => "RedHat",
        release => {
          full => "8.3",
          major => "8",
          minor => "3"
        },
        selinux => {
          enabled => false
        }
      }
      

      As AlmaLinux 8.3 Beta just being out for a few days with the final release being expected later in 2021 Q1, the effect of this change should be little and not introduce any backward-incompatible changes (AlmaLinux 8.3 will be the first release of AlmaLinux, there are no predecessors).

      Attachments

        Activity

          People

            Unassigned Unassigned
            cschug Christoph Schug
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support