From 8f2b044cc91678f6628e665dedbee52afb35bbe3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 16 Jun 2026 10:49:14 -0400 Subject: [PATCH] Make SUSE16 support adaptive to SLES/Leap --- confluent_osdeploy/suse16/profiles/server/autoinstall.json | 2 +- confluent_osdeploy/suse16/profiles/server/scripts/pre.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/suse16/profiles/server/autoinstall.json b/confluent_osdeploy/suse16/profiles/server/autoinstall.json index efc21b74..8bce21fd 100644 --- a/confluent_osdeploy/suse16/profiles/server/autoinstall.json +++ b/confluent_osdeploy/suse16/profiles/server/autoinstall.json @@ -14,7 +14,7 @@ "packages": [] }, "product": { - "id": "openSUSE_Leap" + "id": "%%PRODUCT%%" }, "storage": { "drives": [ diff --git a/confluent_osdeploy/suse16/profiles/server/scripts/pre.sh b/confluent_osdeploy/suse16/profiles/server/scripts/pre.sh index 5cd4ee5b..81f0dfc0 100644 --- a/confluent_osdeploy/suse16/profiles/server/scripts/pre.sh +++ b/confluent_osdeploy/suse16/profiles/server/scripts/pre.sh @@ -45,6 +45,13 @@ tz=${tz#timezone: } sed -i 's!%%TIMEZONE%%!'$tz'!g' /tmp/autoinstall.json sed -i 's!%%LOCALE%%!'$locale'!g' /tmp/autoinstall.json sed -i 's!%%KEYMAP%%!'$keymap'!g' /tmp/autoinstall.json +osid=$(grep ^ID= /etc/os-release | sed -e 's/ID=//g' -e 's/"//g') +if [ "$osid" = "sles" ]; then + sed -i 's!%%PRODUCT%%!'SLES'!g' /tmp/autoinstall.json +else + sed -i 's!%%PRODUCT%%!openSUSE_Leap!g' /tmp/autoinstall.json +fi + if [ ! -e /tmp/installdisk ]; then python3 /tmp/getinstalldisk fi