From a5088ae9ec96cc0fac31764cab5130473992e5c7 Mon Sep 17 00:00:00 2001 From: pavel-shirshov Date: Thu, 11 May 2017 18:57:00 -0700 Subject: [PATCH] [debian]: Add kernel configuration to reboot on kernel soft lockup (#594) --- build_debian.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index d713ca0e52a1..5b58358e017c 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -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