Преглед на файлове

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.
Matthias Schiffer преди 6 години
родител
ревизия
00df8b76e5
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      package/gluon-core/luasrc/lib/gluon/upgrade/130-core-pattern

+ 5 - 0
package/gluon-core/luasrc/lib/gluon/upgrade/130-core-pattern

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