From 7b4063a42fa225a513899e4479a1976d9c28a5d7 Mon Sep 17 00:00:00 2001 From: Tinashe Date: Wed, 5 Mar 2025 11:12:31 -0500 Subject: [PATCH] modify redirection code for rhel --- .../common/profile/scripts/sample/consoleredirect | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/common/profile/scripts/sample/consoleredirect b/confluent_osdeploy/common/profile/scripts/sample/consoleredirect index 4ebc3a8f..1b80fa70 100644 --- a/confluent_osdeploy/common/profile/scripts/sample/consoleredirect +++ b/confluent_osdeploy/common/profile/scripts/sample/consoleredirect @@ -2,7 +2,7 @@ is_suse=false is_rhel=false if test -f /boot/efi/EFI/redhat/grub.cfg; then - grubcfg="/boot/efi/EFI/redhat/grub.cfg" + grubcfg="/etc/default/grub" grub2-mkconfig -o $grubcfg is_rhel=true elif test -f /boot/efi/EFI/sle_hpc/grub.cfg; then @@ -45,5 +45,6 @@ fi # Working on Redhat if $is_rhel; then - sed -i 's,^serial,#serial, ; s,^terminal,#terminal,' $grubcfg + sed -i '/^GRUB_TERMINAL/s/serial //' $grubcfg + grub2-mkconfig -o /boot/grub2/grub.cfg fi \ No newline at end of file