2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-09-06 18:28:19 +00:00

Implement openEuler scripted install

openEuler 24.03 seems closest to el8, so start with that baseline.

Modify el8 handling to recognize a totally missing CA bundle and assume
the original el8 location.

Have osimage recognize openEuler media by presence of openEuler release file.
This commit is contained in:
Jarrod Johnson
2025-08-06 14:56:12 -04:00
parent aafa65274c
commit 36ce0922fc
2 changed files with 15 additions and 3 deletions

View File

@@ -3,10 +3,12 @@ echo -n "" >> /tmp/net.ifaces
echo -n "" > /tmp/01-autocons.devnode
BUNDLENAME=/etc/pki/tls/certs/ca-bundle.crt
if [ ! -e "$BUNDLENAME" ]; then
BUNDLENAME=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
mkdir -p /etc/pki/tls/certs
ln -s $BUNDLENAME /etc/pki/tls/certs/ca-bundle.crt
fi
if [ -e /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ]; then
BUNDLENAME=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
ln -s $BUNDLENAME /etc/pki/tls/certs/ca-bundle.crt
fi
fi
cat /tls/*.0 >> $BUNDLENAME
if ! grep console= /proc/cmdline >& /dev/null; then
autocons=$(/opt/confluent/bin/autocons)

View File

@@ -318,6 +318,16 @@ def extract_file(archfile, flags=0, callback=lambda x: None, imginfo=(), extract
return pctdone
def check_openeuler(isoinfo):
for entry in isoinfo[0]:
if 'openEuler-release-24.03' in entry:
ver = entry.split('-')[2]
arch = entry.split('.')[-2]
cat = 'el9'
break
else:
return None
return {'name': 'openeuler-{0}-{1}'.format(ver, arch), 'method': EXTRACT, 'category': cat}
def check_rocky(isoinfo):
ver = None
arch = None