From de7f47b7455778134860e1c9127e1b138d07445a Mon Sep 17 00:00:00 2001 From: yl1576 Date: Mon, 11 Mar 2024 20:11:56 +0800 Subject: [PATCH] fix: RHEL family OS custom image kickstart sed statement --- alma8/http/alma8.ks.pkrtpl.hcl | 2 +- alma9/http/alma9.ks.pkrtpl.hcl | 2 +- ol8/http/ol8.ks.pkrtpl.hcl | 2 +- ol9/http/ol9.ks.pkrtpl.hcl | 2 +- rocky8/http/rocky8.ks.pkrtpl.hcl | 2 +- rocky9/http/rocky.ks.pkrtpl.hcl | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/alma8/http/alma8.ks.pkrtpl.hcl b/alma8/http/alma8.ks.pkrtpl.hcl index 8c1ec00..168751c 100644 --- a/alma8/http/alma8.ks.pkrtpl.hcl +++ b/alma8/http/alma8.ks.pkrtpl.hcl @@ -64,7 +64,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 diff --git a/alma9/http/alma9.ks.pkrtpl.hcl b/alma9/http/alma9.ks.pkrtpl.hcl index b0ac363..3d8df2e 100644 --- a/alma9/http/alma9.ks.pkrtpl.hcl +++ b/alma9/http/alma9.ks.pkrtpl.hcl @@ -64,7 +64,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 diff --git a/ol8/http/ol8.ks.pkrtpl.hcl b/ol8/http/ol8.ks.pkrtpl.hcl index 89d4a6e..4d9c19c 100644 --- a/ol8/http/ol8.ks.pkrtpl.hcl +++ b/ol8/http/ol8.ks.pkrtpl.hcl @@ -38,7 +38,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/ol9/http/ol9.ks.pkrtpl.hcl b/ol9/http/ol9.ks.pkrtpl.hcl index e6d1000..f20acb0 100644 --- a/ol9/http/ol9.ks.pkrtpl.hcl +++ b/ol9/http/ol9.ks.pkrtpl.hcl @@ -38,7 +38,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/rocky8/http/rocky8.ks.pkrtpl.hcl b/rocky8/http/rocky8.ks.pkrtpl.hcl index aaba996..efea180 100644 --- a/rocky8/http/rocky8.ks.pkrtpl.hcl +++ b/rocky8/http/rocky8.ks.pkrtpl.hcl @@ -64,7 +64,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 diff --git a/rocky9/http/rocky.ks.pkrtpl.hcl b/rocky9/http/rocky.ks.pkrtpl.hcl index e02eeb5..f577ba5 100644 --- a/rocky9/http/rocky.ks.pkrtpl.hcl +++ b/rocky9/http/rocky.ks.pkrtpl.hcl @@ -65,7 +65,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