From 6937af6a110f3e5935f3116242eb079505cd56f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 6 Nov 2026 02:48:04 +0100 Subject: [PATCH] install: Add AlmaLinux and Oracle Linux support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- install.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 6bdab919..939201f7 100755 --- a/install.sh +++ b/install.sh @@ -316,10 +316,12 @@ get_distribution() { lsb_dist="$(. /etc/os-release && echo "$ID")" fi - # Normalize Fedora Asahi Remix to fedora - if [ "$lsb_dist" = "fedora-asahi-remix" ]; then - lsb_dist="fedora" - fi + # Map os-release IDs to their download.docker.com repository names + case "$lsb_dist" in + almalinux) lsb_dist="alma" ;; + fedora-asahi-remix) lsb_dist="fedora" ;; + ol) lsb_dist="oracle" ;; + esac # Returning an empty string here should be alright since the # case statements don't act unless you provide an actual value @@ -542,7 +544,7 @@ do_install() { esac ;; - centos|rhel|rocky) + alma|centos|oracle|rhel|rocky) if [ -z "$dist_version" ] && [ -r /etc/os-release ]; then dist_version="$(. /etc/os-release && echo "$VERSION_ID")" fi @@ -677,7 +679,7 @@ do_install() { echo_docker_as_nonroot exit 0 ;; - centos|fedora|rhel|rocky) + alma|centos|fedora|oracle|rhel|rocky) repo_file_url="$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE" ( if ! is_dry_run; then