Rocky 9 doesn't appear to be detected correctly

The issue I am facing:

pihole -up does not work without using the environment variable override on Rocky 9.3. If I pass PIHOLE_SKIP_OS_CHECK=true to the updater, it runs just fine and appears to otherwise work.

It looks like there's supposed to be some support for Alma/Rocky based on this commit: pi-hole/automated install/basic-install.sh at a3f1317add4dbc786c083302fb1c1bfb078e22ac · pi-hole/pi-hole · GitHub

but as of today, that code doesn't seem to exist: pi-hole/automated install/basic-install.sh at 60b6a1016c7f39e1db8359fc5874ae35d8c27ff9 · pi-hole/pi-hole · GitHub
(I do recognize that this may not be where all the OS detection happens, but it's what I found when I was searching to figure out if this was a supported path)

I know it's not explicitly listed on the supported OS table, but is this an intentional support loss for Rocky, Alma, and other EL derivatives that might use a similar detection logic?

pihole -up shell output
[admin@dns1 ~]$ sudo pihole -up
  [✓] EPEL repository already installed
  [✓] Checking for git
  [✓] Checking for dialog
  [✓] Checking for iproute
  [✓] Checking for newt
  [✓] Checking for procps-ng
  [✓] Checking for chkconfig
  [✓] Checking for ca-certificates

  [i] Checking for updates...
  [i] Pi-hole Core:     up to date
  [i] Web Interface:    up to date
  [i] FTL:              update available

  [i] FTL out of date, it will be updated by the installer.

  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [✓] Default SELinux: permissive
  [✓] Current SELinux: permissive
  [✓] EPEL repository already installed

  [✓] Checking dnf for upgraded packages... up to date!

  [i] Checking for / installing Required dependencies for OS Check...
  [✓] Checking for grep
  [✓] Checking for bind-utils

  [✗] Unsupported OS detected: Rocky 9.3
      If you are seeing this message and you do have a supported OS, please contact support.

      https://docs.pi-hole.net/main/prerequisites/#supported-operating-systems

      If you wish to attempt to continue anyway, you can try one of the following commands to skip this check:

      e.g: If you are seeing this message on a fresh install, you can run:
             curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true bash

           If you are seeing this message after having run pihole -up:
             sudo PIHOLE_SKIP_OS_CHECK=true pihole -r
           (In this case, your previous run of pihole -up will have already updated the local repository)

      It is possible that the installation will still fail at this stage due to an unsupported configuration.
      If that is the case, you can feel free to ask the community on Discourse with the Community Help category:
      https://discourse.pi-hole.net/c/bugs-problems-issues/community-help/


  Unable to complete update, please contact Pi-hole Support

Details about my system:

`/etc/*release` info
[admin@dns1 ~]$ ls -l /etc/*release
lrwxrwxrwx. 1 root root 21 Nov 15 17:22 /etc/os-release -> ../usr/lib/os-release
lrwxrwxrwx. 1 root root 13 Nov 15 17:22 /etc/redhat-release -> rocky-release
-rw-r--r--. 1 root root 36 Nov 15 17:22 /etc/rocky-release
lrwxrwxrwx. 1 root root 13 Nov 15 17:22 /etc/system-release -> rocky-release
[admin@dns1 ~]$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.3"
[admin@dns1 ~]$ cat /etc/redhat-release
Rocky Linux release 9.3 (Blue Onyx)
[admin@dns1 ~]$ dig +short -t txt versions.pi-hole.net @ns1.pi-hole.net
"Raspbian=10,11,12 Ubuntu=20,22,23 Debian=10,11,12 Fedora=36,37,38 CentOS=8,9"

What I have changed since installing Pi-hole:
off hand, but probably a lot more, this install technically predates gravity.db:

  • Pi-hole tree copied from a CentOS 7 machine
  • Nginx instead of Lighttpd
  • SSL enabled on web
  • NetworkManager used to configure several interfaces for isc-dhcpd, including source routing

There is no loss of support.
Rocky never was supported - the commits just enable the script to complete if a user decides to skip the OS check - see Don't fail if Alma or Rocky are detected by yubiuser · Pull Request #4824 · pi-hole/pi-hole · GitHub.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.