Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
crashkernel/mxgrub: enable crashkernel only on servers
Size limiting (64G-:256M) is explained in the kernel docs
  -> admin-guide/kdump/kdump.rst (Extended crashkernel syntax)

The memory occupied can be checked with:

  #> cat /sys/kernel/kexec_crash_size
  • Loading branch information
thomas committed Nov 2, 2021
1 parent 2666853 commit 511d690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxgrub/mxgrub
Expand Up @@ -240,7 +240,7 @@ sub scan_mariux {
}
}

our $KERNEL_PARAMETER="ro crashkernel=256M console=ttyS0,115200n8 console=tty0 init=/bin/systemd audit=0 random.trust_cpu=on";
our $KERNEL_PARAMETER="ro crashkernel=64G-:256M console=ttyS0,115200n8 console=tty0 init=/bin/systemd audit=0 random.trust_cpu=on";

sub update_grub_cfg {
my $kernellist='';
Expand Down

0 comments on commit 511d690

Please sign in to comment.