commit 9a77ef188b24742b595f69891b97d48dc997f5e2 Author: Louis Bouchard <email address hidden> Date: Thu Jan 29 16:03:04 2015 +0100
[debian] Fix panic_on_oops faulty handling
Signed-off-by: Louis Bouchard <email address hidden>
diff --git a/debian/kdump-config b/debian/kdump-config index 7ea26cab1c95..64489a74757f 100755 --- a/debian/kdump-config +++ b/debian/kdump-config @@ -310,9 +310,10 @@ function fadump_register() logger -t $NAME "fadump registered successfully"
# Last step: make sure panic_on_oops is enabled - if [ -x /sbin/sysctl -a "$KDUMP_SYSCTL" != " " ] ; then - sysctl -w $KDUMP_SYSCTL >/dev/null - fi + PANIC_ON_OOPS=`/sbin/sysctl kernel.panic_on_oops | cut -d" " -f3` + if [ $PANIC_ON_OOPS != "1" ] ; then + sysctl -w kernel.panic_on_oops=1 >/dev/null + fi }
# Returns: none. prints warnings or exit @@ -393,9 +394,11 @@ function kdump_load() fi
# Last step: make sure panic_on_oops is enabled - if [ -x /sbin/sysctl -a "$KDUMP_SYSCTL" != " " ] ; then - sysctl -w $KDUMP_SYSCTL >/dev/null - fi + PANIC_ON_OOPS=`/sbin/sysctl kernel.panic_on_oops | cut -d" " -f3` + if [ $PANIC_ON_OOPS != "1" ] ; then + sysctl -w kernel.panic_on_oops=1 >/dev/null + fi + }
commit 9a77ef188b24742 b595f69891b97d4 8dc997f5e2
Author: Louis Bouchard <email address hidden>
Date: Thu Jan 29 16:03:04 2015 +0100
[debian] Fix panic_on_oops faulty handling
Signed-off-by: Louis Bouchard <email address hidden>
diff --git a/debian/ kdump-config b/debian/ kdump-config .64489a74757f 100755 kdump-config kdump-config
index 7ea26cab1c95.
--- a/debian/
+++ b/debian/
@@ -310,9 +310,10 @@ function fadump_register()
logger -t $NAME "fadump registered successfully"
# Last step: make sure panic_on_oops is enabled OOPS=`/ sbin/sysctl kernel. panic_on_ oops | cut -d" " -f3` panic_on_ oops=1 >/dev/null
- if [ -x /sbin/sysctl -a "$KDUMP_SYSCTL" != " " ] ; then
- sysctl -w $KDUMP_SYSCTL >/dev/null
- fi
+ PANIC_ON_
+ if [ $PANIC_ON_OOPS != "1" ] ; then
+ sysctl -w kernel.
+ fi
}
# Returns: none. prints warnings or exit
@@ -393,9 +394,11 @@ function kdump_load()
fi
# Last step: make sure panic_on_oops is enabled OOPS=`/ sbin/sysctl kernel. panic_on_ oops | cut -d" " -f3` panic_on_ oops=1 >/dev/null
- if [ -x /sbin/sysctl -a "$KDUMP_SYSCTL" != " " ] ; then
- sysctl -w $KDUMP_SYSCTL >/dev/null
- fi
+ PANIC_ON_
+ if [ $PANIC_ON_OOPS != "1" ] ; then
+ sysctl -w kernel.
+ fi
+
}