From fd7f4335d4e53aaf554b8773fd9b623780779edb Mon Sep 17 00:00:00 2001 From: Alan Baghumian Date: Tue, 28 Nov 2023 17:10:12 -0800 Subject: [PATCH] Updated kickstart GRUB_ENABLE_BLSCFG sed commands to work properly with RHEL9 and related operating systems. --- centos7/http/centos7.ks.in | 2 +- centos8-stream/http/centos8-stream.ks.in | 2 +- centos8/http/centos8.ks.in | 2 +- rhel7/http/rhel7.ks.in | 2 +- rhel8/http/rhel8.ks.in | 2 +- rhel9/http/rhel9.ks.in | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/centos7/http/centos7.ks.in b/centos7/http/centos7.ks.in index 8c618790..47083a36 100644 --- a/centos7/http/centos7.ks.in +++ b/centos7/http/centos7.ks.in @@ -40,7 +40,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]* sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub -sed -i 's/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g' /etc/default/grub +sed -i 's/GRUB_ENABLE_BLSCFG=.*/GRUB_ENABLE_BLSCFG=false/g' /etc/default/grub yum clean all %end diff --git a/centos8-stream/http/centos8-stream.ks.in b/centos8-stream/http/centos8-stream.ks.in index 42990f6f..823e78b0 100644 --- a/centos8-stream/http/centos8-stream.ks.in +++ b/centos8-stream/http/centos8-stream.ks.in @@ -40,7 +40,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]* sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub -sed -i 's/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g' /etc/default/grub +sed -i 's/GRUB_ENABLE_BLSCFG=.*/GRUB_ENABLE_BLSCFG=false/g' /etc/default/grub dnf clean all %end diff --git a/centos8/http/centos8.ks.in b/centos8/http/centos8.ks.in index f7d2c824..80800618 100644 --- a/centos8/http/centos8.ks.in +++ b/centos8/http/centos8.ks.in @@ -40,7 +40,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]* sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub -sed -i 's/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g' /etc/default/grub +sed -i 's/GRUB_ENABLE_BLSCFG=.*/GRUB_ENABLE_BLSCFG=false/g' /etc/default/grub dnf clean all %end diff --git a/rhel7/http/rhel7.ks.in b/rhel7/http/rhel7.ks.in index 695fe263..f0114967 100644 --- a/rhel7/http/rhel7.ks.in +++ b/rhel7/http/rhel7.ks.in @@ -40,7 +40,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]* sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub -sed -i 's/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g' /etc/default/grub +sed -i 's/GRUB_ENABLE_BLSCFG=.*/GRUB_ENABLE_BLSCFG=false/g' /etc/default/grub yum clean all %end diff --git a/rhel8/http/rhel8.ks.in b/rhel8/http/rhel8.ks.in index 9ee3846d..caa543df 100644 --- a/rhel8/http/rhel8.ks.in +++ b/rhel8/http/rhel8.ks.in @@ -39,7 +39,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]* sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub -sed -i 's/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g' /etc/default/grub +sed -i 's/GRUB_ENABLE_BLSCFG=.*/GRUB_ENABLE_BLSCFG=false/g' /etc/default/grub dnf clean all %end diff --git a/rhel9/http/rhel9.ks.in b/rhel9/http/rhel9.ks.in index 9ee3846d..caa543df 100644 --- a/rhel9/http/rhel9.ks.in +++ b/rhel9/http/rhel9.ks.in @@ -39,7 +39,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]* sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub -sed -i 's/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g' /etc/default/grub +sed -i 's/GRUB_ENABLE_BLSCFG=.*/GRUB_ENABLE_BLSCFG=false/g' /etc/default/grub dnf clean all %end