S01sysctl: kernel.hung_task_timeout_secs=120
/bin/coredump will tryto write core files to flash for up to
100 seconds before giving up and truncating the file. Set the
panic threshold comfortably above that timeout.
Fixes b/34064401
Change-Id: I9df9c0bc6fe6b080444033aad02008768e9e31b0
diff --git a/fs/skeleton/etc/init.d/S01sysctl.platform_gfibertv b/fs/skeleton/etc/init.d/S01sysctl.platform_gfibertv
index 75336ca..5cd3608 100755
--- a/fs/skeleton/etc/init.d/S01sysctl.platform_gfibertv
+++ b/fs/skeleton/etc/init.d/S01sysctl.platform_gfibertv
@@ -17,6 +17,9 @@
sysctl net.ipv4.conf.all.promote_secondaries=1
# Panic everytime there is a kernel oops
sysctl -q kernel.panic_on_oops=1
+ # Allow 120 seconds to write a core file out to flash.
+ # /bin/coredump gives up after 100 seconds.
+ sysctl -w kernel.hung_task_timeout_secs=120
;;
stop)
;;