2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-06-19 10:00:46 +00:00

Make SUSE16 support adaptive to SLES/Leap

This commit is contained in:
Jarrod Johnson
2026-06-16 10:49:14 -04:00
parent 1afba4ecaa
commit 8f2b044cc9
2 changed files with 8 additions and 1 deletions
@@ -14,7 +14,7 @@
"packages": []
},
"product": {
"id": "openSUSE_Leap"
"id": "%%PRODUCT%%"
},
"storage": {
"drives": [
@@ -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