From 76952e774b8a3bb6327a83e4fbd22c311fd1ea77 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 20 May 2020 14:46:26 -0400 Subject: [PATCH] Add more verbose autoconsole text Point users towards screendump for Ubuntu and SuSE. --- .../suse15/initramfs/opt/confluent/bin/suseagent | 5 +++++ .../initramfs/custom-installation/hooks/casper-bottom.sh | 1 + 2 files changed, 6 insertions(+) diff --git a/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent b/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent index f2b1edfe..54ba12fc 100755 --- a/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent +++ b/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent @@ -48,6 +48,11 @@ fi textconsole=$(grep ^textconsole: /tmp/confluent.deploycfg) textconsole=${textconsole#textconsole: } if [ "$textconsole" = "true" ] && ! grep console= /proc/cmdline > /dev/null && [ ! -z "$autocons" ]; then + echo "Serial console autodetected and enabled, will be available upon install completion" > ${autocons%,*} + echo "The installer will run in text mode on the graphics console. When ssh is available," > ${autocons%,*} + echo "install progress may be checked by using ssh to access and run the screendump command" > ${autocons%,*} + echo "Install time serial console would require the profile to have console=${autocons#/dev/}" > ${autocons%,*} + echo "specified in the kernel command line arguments" > ${autocons%,*} sed -e s'/$/ 'console=${autocons#*/dev/}/ /proc/cmdline > /etc/fakecmdline mount -o bind /etc/fakecmdline /proc/cmdline echo "ConsoleDevice: ${autocons%,*}" >> /etc/linuxrc.d/01-confluent diff --git a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh index a33ed08f..93b2a338 100755 --- a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh +++ b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh @@ -60,6 +60,7 @@ if [ -f /custom-installation/autocons.info ]; then fi if [ ! -z "$cons" ]; then echo "Installation will proceed on graphics console, autoconsole not supported during autoinstall phase" > ${cons%,*} + echo "Progress can be checked by using ssh to access and running the screendump command" > ${cons%,*} #fcmdline="$fcmdline console=${cons#/dev/}" fi echo $fcmdline > /custom-installation/confluent/fakecmdline