diff --git a/confluent_osdeploy/el9-diskless/profiles/default/scripts/sample/consoleredirect b/confluent_osdeploy/el9-diskless/profiles/default/scripts/sample/consoleredirect deleted file mode 100644 index 60143ae5..00000000 --- a/confluent_osdeploy/el9-diskless/profiles/default/scripts/sample/consoleredirect +++ /dev/null @@ -1,15 +0,0 @@ -is_rhel=false - -if test -f /boot/efi/EFI/redhat/grub.cfg; then - grubcfg="/etc/default/grub" - is_rhel=true -else - echo "Expected File missing: Check if os redhat" - exit -fi - -# Working on Redhat -if $is_rhel; then - sed -i '/^GRUB_TERMINAL/s/serial //' $grubcfg - grub2-mkconfig -o /boot/grub2/grub.cfg -fi \ No newline at end of file diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/sample/consoleredirect b/confluent_osdeploy/suse15/profiles/hpc/scripts/sample/consoleredirect deleted file mode 100644 index 270d24b7..00000000 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/sample/consoleredirect +++ /dev/null @@ -1,39 +0,0 @@ -is_suse=false - -if test -f /boot/efi/EFI/sle_hpc/grub.cfg; then - grubcfg="/boot/efi/EFI/sle_hpc/grub.cfg" - grub2-mkconfig -o $grubcfg - is_suse=true -else - echo "Expected File missing: Check if os sle_hpc" - exit -fi - -# working on SUSE -if $is_suse; then - start=false - num_line=0 - lines_to_edit=() - while read line; do - ((num_line++)) - if [[ $line == *"grub_platform"* ]]; then - start=true - fi - if $start; then - if [[ $line != "#"* ]];then - lines_to_edit+=($num_line) - fi - fi - if [[ ${#line} -eq 2 && $line == *"fi" ]]; then - if $start; then - start=false - fi - fi - done < grub_cnf.cfg - - for line_num in "${lines_to_edit[@]}"; do - line_num+="s" - sed -i "${line_num},^,#," $grubcfg - done - sed -i 's,^terminal,#terminal,' $grubcfg -fi