From dcb9f60ade0e94d4632a41a779ded15d6a078fd3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 18 May 2020 16:13:16 -0400 Subject: [PATCH] Modify suse autocons logic --- confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent b/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent index 0fb582d8..a645f9b6 100755 --- a/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent +++ b/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent @@ -43,7 +43,7 @@ curl -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $(cat /tmp/conflue textconsole=$(grep ^textconsole: /tmp/confluent.deploycfg) textconsole=${textconsole#textconsole: } if [ "$textconsole" = "true" ] && ! grep console= /proc/cmdline > /dev/null && [ ! -z "$autocons" ]; then - cat /proc/cmdline |sed -e s'/$/ 'console=${autocons#*/dev/}/ /> /etc/fakecmdline + 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 fi