Blame SOURCES/generate_crashkernel_default.sh

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