From 23e8642950756e9f58ec696de10bea73693fc124 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 Apr 2020 17:27:52 -0400 Subject: [PATCH] Improve autocons Provide more feedback and have a proper cmdline style argument --- misc/confluent-cmdline.sh.rh8 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/misc/confluent-cmdline.sh.rh8 b/misc/confluent-cmdline.sh.rh8 index 451ac884..79b010c2 100644 --- a/misc/confluent-cmdline.sh.rh8 +++ b/misc/confluent-cmdline.sh.rh8 @@ -1,9 +1,12 @@ #!/bin/bash echo -n "" >> /tmp/net.ifaces cat /tls/*.pem >> /etc/pki/tls/certs/ca-bundle.crt -autocons=$(/opt/confluent/bin/autocons) -if [ -n "$autocons" ]; then - echo console=$autocons >> /etc/cmdline.d/01-autocons +if ! grep console= /proc/cmdline >& /dev/null; then + autocons=$(/opt/confluent/bin/autocons) + if [ -n "$autocons" ]; then + echo console=$autocons |sed -e 's!/dev/!!' >> /etc/cmdline.d/01-autocons.conf + echo "Initializing auto detected console when installer starts" + fi fi . /lib/anaconda-lib.sh wait_for_kickstart