Hi,
Some users might want to store core dumps in the same place as kernel
dumps (especially when storing them on a remote machine). To avoid
having to configure two scripts, add a dump-core script to kdump-tools.
It will use the same configuration file as kdump-tools.
Set /proc/sys/kernel/core_pattern to pipe the core dumps to dump-core.
You can use following sysctl configuration file:
$ cat /etc/sysctl.d/50-dump-core.conf
kernel.core_pattern = |/usr/share/kdump-tools/dump-core %e-pid%p-sig%s-%t
# 2 = "suidsafe": Any binary which normally would not be dumped (see "0")
# is dumped readable by root only.
fs.suid_dumpable = 2
$ sysctl -p /etc/sysctl.d/50-dump-core.conf
A patch is attached. Please review it carefully. Some could is
duplicated and probably should be placed in a shell library file.