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