Pass additional parameter "%P" - pid of the process in the initial namespace, which is host. (#5301)

This would enable the coredump_compress script to retrieve additional info regarding the crashing process.
This commit is contained in:
Renuka Manavalan 2020-09-03 13:09:57 -07:00 committed by Abhishek Dosi
parent ae3d458d48
commit cc135807d9

View File

@ -376,7 +376,7 @@ sudo mkdir -p $FILESYSTEM_ROOT/var/core
# Config sysctl
sudo augtool --autosave "
set /files/etc/sysctl.conf/kernel.core_pattern '|/usr/bin/coredump-compress %e %t %p'
set /files/etc/sysctl.conf/kernel.core_pattern '|/usr/bin/coredump-compress %e %t %p %P'
set /files/etc/sysctl.conf/kernel.softlockup_panic 1
set /files/etc/sysctl.conf/kernel.panic 10
set /files/etc/sysctl.conf/vm.panic_on_oom 2