gluon-core: ensure kernel.core_pattern is set

/etc/sysctl.conf is not updated correctly on sysupgrades (fixed in master);
explicitly set kernel.core_pattern to ensure corefiles don't clutter the
root filesystem.
This commit is contained in:
Matthias Schiffer 2018-04-13 15:24:22 +02:00
parent d02735041e
commit 00df8b76e5
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -0,0 +1,5 @@
#!/usr/bin/lua
local sysctl = require 'gluon.sysctl'
sysctl.set('kernel.core_pattern', '/tmp/%e.%t.%p.%s.core')