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

Fix SLES 16 install when no serial console

autoinstall is run without a tty, so detect that and use tty1 instead.

Also, clean up agama config by avoiding too many duplicated network entries.
This commit is contained in:
Jarrod Johnson
2026-08-24 11:31:31 -04:00
parent 2308ee57fe
commit 9d6c6495bf
2 changed files with 6 additions and 0 deletions
@@ -62,6 +62,7 @@ if [ -e /dev/disk/by-label/CNFLNT_IDNT ]; then
/usr/libexec/nm-initrd-generator ip=$NICGUESS:dhcp
echo ip=$NICGUESS:dhcp >> /etc/cmdline.d/01-confluent.conf
echo " "ip=$NICGUESS:dhcp >> /run/agama/cmdline.d/agama.conf
DETECTED=1
else
v4addr=$(grep ^ipv4_address: $tcfg)
v4addr=${v4addr#ipv4_address: }
@@ -8,6 +8,11 @@ if [ -e /run/confluent/01-autocons.conf ]; then
serialcons=$(tty)
fi
fi
if [ "$serialcons" = "not a tty" ]; then
serialcons="/dev/tty1"
elif [ -z "$serialcons" ]; then
serialcons="/dev/tty1"
fi
profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|awk '{print $2}')
export profile
python3 /opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/functions > /etc/confluent/functions