kernel/generate_crashkernel_default.sh
Justin M. Forbes 7ab3430578
kernel-5.14.0-0.rc0.20210707git77d34a4683b0.12
* Wed Jul 07 2021 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.14.0-0.rc0.20210707git77d34a4683b0.12]
- Fix the perf trace link location (Justin M. Forbes)
- drm/amdgpu/dc: Really fix DCN3.1 Makefile for PPC64 (Michal Suchanek)
Resolves: rhbz#

Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
2021-07-07 13:27:33 -05:00

26 lines
448 B
Bash
Executable File

#!/bin/bash
kernelver=$1 && shift
arch=$1 && shift
rootfs=$1 && shift
output="${rootfs}/lib/modules/${kernelver}/crashkernel.default"
case $arch in
x86_64|s390*)
ck_cmdline="crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M"
;;
arm64|aarch64)
ck_cmdline="crashkernel=2G-:448M"
;;
powerpc|ppc64*)
ck_cmdline="crashkernel=2G-4G:384M,4G-16G:512M,16G-64G:1G,64G-128G:2G,128G-:4G"
;;
*)
ck_cmdline=""
;;
esac
cat > "$output" <<EOF
$ck_cmdline
EOF