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 GitHub
parent fe01f0c285
commit 47a925cac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,7 +396,7 @@ sudo mkdir -p $FILESYSTEM_ROOT/var/core
# Config sysctl # Config sysctl
sudo augtool --autosave " 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.softlockup_panic 1
set /files/etc/sysctl.conf/kernel.panic 10 set /files/etc/sysctl.conf/kernel.panic 10
set /files/etc/sysctl.conf/vm.panic_on_oom 2 set /files/etc/sysctl.conf/vm.panic_on_oom 2