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:
parent
d02735041e
commit
00df8b76e5
5
package/gluon-core/luasrc/lib/gluon/upgrade/130-core-pattern
Executable file
5
package/gluon-core/luasrc/lib/gluon/upgrade/130-core-pattern
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
local sysctl = require 'gluon.sysctl'
|
||||
|
||||
sysctl.set('kernel.core_pattern', '/tmp/%e.%t.%p.%s.core')
|
Loading…
Reference in New Issue
Block a user