[debian]: Add kernel configuration to reboot on kernel soft lockup (#594)

This commit is contained in:
pavel-shirshov 2017-05-11 18:57:00 -07:00 committed by Shuotian Cheng
parent b26ec863e8
commit a5088ae9ec

View File

@ -217,6 +217,9 @@ sudo mkdir -p $FILESYSTEM_ROOT/var/core
sudo augtool --autosave "
set /files/etc/sysctl.conf/kernel.core_pattern '|/usr/bin/coredump-compress %e %p'
set /files/etc/sysctl.conf/kernel.softlockup_panic 1
set /files/etc/sysctl.conf/kernel.panic 10
set /files/etc/sysctl.conf/net.ipv4.conf.default.forwarding 1
set /files/etc/sysctl.conf/net.ipv4.conf.all.forwarding 1
set /files/etc/sysctl.conf/net.ipv4.conf.eth0.forwarding 0