Skip to content
Snippets Groups Projects

Make sure crashkernel=auto is not used in el9

Merged Daniel Juarez Gonzalez requested to merge el9_crashkernel into master
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
@@ -7,6 +7,15 @@ t_Log "Running $0 - Checking default grub parameters"
t_Log "Looking for crashkernel in /etc/default/grub"
grep -e 'GRUB_CMDLINE_LINUX=".*crashkernel.*' /etc/default/grub
t_CheckExitStatus $?
# el9 onwards cannot use crashkernel=auto
# Ref. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9-beta/html/managing_monitoring_and_updating_the_kernel/configuring-kdump-on-the-command-line_managing-monitoring-and-updating-the-kernel
if [ "$centos_ver" -ge 9 ] ; then
t_Log "Making sure crashkernel=auto is not in /etc/default/grub"
! grep -e 'GRUB_CMDLINE_LINUX=".*crashkernel=auto.*' /etc/default/grub
t_CheckExitStatus $?
fi
t_Log "Looking for crashkernel in /proc/cmdline"
grep -e 'crashkernel' /proc/cmdline
t_CheckExitStatus $?
Loading