diff options
author | Lee Schermerhorn <lee.schermerhorn@hp.com> | 2014-10-01 16:26:17 -0400 |
---|---|---|
committer | Louis Bouchard <louis.bouchard@ubuntu.com> | 2014-11-14 15:18:41 +0100 |
commit | 012dc7827e4c1d24ab315811962d26ced1fdf09a (patch) | |
tree | 35959c25cbaee9b47e486c23239bf54c87797a33 /debian/kdump-config | |
parent | 4f2f60f61fc030b1b7afadf96eafca16d78ff1e7 (diff) |
kdump-config: add '-F' to MAKEDUMP_ARGS for ssh
When sent using ssh, the core dump need to be sent
in flaten format to be readable by the crash tool.
Closes: #768317
Author: Lee Schermerhorn <lee.schermerhorn@hp.com>
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768317
Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
Diffstat (limited to 'debian/kdump-config')
-rwxr-xr-x | debian/kdump-config | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/kdump-config b/debian/kdump-config index eb280d6..94c13ad 100755 --- a/debian/kdump-config +++ b/debian/kdump-config @@ -469,6 +469,8 @@ function kdump_save_core_to_ssh() return 1 fi + # Add '-F' [flatten] to MAKEDUMP_ARGS, if not there: + [ "${MAKEDUMP_ARGS#-F*}" != "${MAKEDUMP_ARGS}" ] || MAKEDUMP_ARGS="${MAKEDUMP_ARGS} -F" log_action_msg "sending makedumpfile $MAKEDUMP_ARGS $vmcore_file to $KDUMP_REMOTE_HOST : $KDUMP_CORETEMP" makedumpfile $MAKEDUMP_ARGS $vmcore_file | ssh -i $KDUMP_SSH_KEY $KDUMP_REMOTE_HOST dd of=$KDUMP_CORETEMP ERROR=$? |