From 9d6c6495bf109ca5396d7e98352e2a31861eae9f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 24 Aug 2026 11:31:31 -0400 Subject: [PATCH] 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. --- .../var/lib/dracut/hooks/pre-trigger/01-confluent.sh | 1 + confluent_osdeploy/suse16/profiles/server/autoinstall.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh b/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh index e70bdef7..f94a9c54 100644 --- a/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh +++ b/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh @@ -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: } diff --git a/confluent_osdeploy/suse16/profiles/server/autoinstall.sh b/confluent_osdeploy/suse16/profiles/server/autoinstall.sh index 53ef6a00..81f492a1 100644 --- a/confluent_osdeploy/suse16/profiles/server/autoinstall.sh +++ b/confluent_osdeploy/suse16/profiles/server/autoinstall.sh @@ -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