From: Ian Campbell Subject: [PATCH OSSTEST] ts-host-install: Arrange for ssh logins to have no corefile size limit Date: Wed, 25 Mar 2015 14:29:50 +0000 Message-ID: <1427293790-8008-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Collect the output of "cat /proc/self/limits" so we get some clue if this isn't working for some reason. Signed-off-by: Ian Campbell --- ts-host-install | 7 +++++++ ts-logs-capture | 1 + 2 files changed, 8 insertions(+) diff --git a/ts-host-install b/ts-host-install index 2e3e84b..ea5511e 100755 --- a/ts-host-install +++ b/ts-host-install @@ -146,6 +146,13 @@ END # %p==pid,%e==executable name,%t==timestamp "/var/core/%t.%p.%e.core") }); target_cmd_root($ho, "sysctl --load /etc/sysctl.conf"); + my $coredumps_conf = <<'END'; +# +* soft core -1 +root soft core -1 +END + target_putfilecontents_root_stash($ho,10,$coredumps_conf, + '/etc/security/limits.d/coredumps.conf'); target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 ."); diff --git a/ts-logs-capture b/ts-logs-capture index 45b0a38..4ad55b9 100755 --- a/ts-logs-capture +++ b/ts-logs-capture @@ -168,6 +168,7 @@ sub fetch_logs_host_guests () { 'lspci -tv', 'cat /proc/partitions', 'virsh capabilities', + 'cat /proc/self/limits', ) { try_cmd_output_save($cmd); } -- 2.1.4