Skip to content

Commit

Permalink
fix: RHEL family OS custom image kickstart blscfg sed statement (#218)
Browse files Browse the repository at this point in the history
to fix: #217

relates to: #191

Co-authored-by: yl1576 <[email protected]>
  • Loading branch information
qcu266 and yl1576 authored Mar 12, 2024
1 parent 6793c55 commit d5a87f5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion alma8/http/alma8.ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion alma9/http/alma9.ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ol8/http/ol8.ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ol9/http/ol9.ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rocky8/http/rocky8.ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion rocky9/http/rocky.ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d5a87f5

Please sign in to comment.