From patchwork Thu Feb 25 21:55:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabe Evans X-Patchwork-Id: 588411 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 26E24140317 for ; Fri, 26 Feb 2016 08:58:10 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=hashrabbit.co header.i=@hashrabbit.co header.b=gn2emmfe; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0F12C95D2C; Thu, 25 Feb 2016 21:57:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5d5v5+RH5hy9; Thu, 25 Feb 2016 21:57:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7B9AB95D25; Thu, 25 Feb 2016 21:57:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id DAD4D1C2E64 for ; Thu, 25 Feb 2016 21:57:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D6CF089025 for ; Thu, 25 Feb 2016 21:57:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZfMdPTauS4TS for ; Thu, 25 Feb 2016 21:57:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6D1A688FC6 for ; Thu, 25 Feb 2016 21:57:19 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id yy13so38791468pab.3 for ; Thu, 25 Feb 2016 13:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hashrabbit.co; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QFAianzqlscOMOTNisjKsXs7UkJ/M3MZvYvE19zCzhw=; b=gn2emmfe2E3OzTX61kSNBc/UEV6Hg2amKU29c/t1at2+jFF51Lvo3eVwpgZVbnwJVc +0kgCLIK110mDtrDXDfv5klQx45GkRSpT9GlYS8p6wqbYKCPXaB+Hn87Pg3sYu0jK2EU KIX1xMH+Ol6Ugcaas0/IJWQa0ILXhSkSfzL9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QFAianzqlscOMOTNisjKsXs7UkJ/M3MZvYvE19zCzhw=; b=PBJzCLkB7NcelM+b+DjApdxISGXVPWrJsTCm8d+OHm6TQNnjk0gYAHRNCmJw3n/mYG BXMXQ2Ji8cDLkalPte4qav4+zWCPcMzYQdkS4Z2j4St+1gdIXFw176AnhUkq4B5E9J0x kkJsVlvf4Y+Sz+hJLRMPywXoCiOljdvUsPMiFJ/mBafr1wYa1bzPFf3rnDRq+z06uT3w 68SJeBE8qnDHDTnObLwjKWl4zgXQNZ20uUQJ+zg09LgRsw8gqJ7shEPCa0D+EAqRyFxp 66l15C0F+4DcgIWU0llovGj8SCEPxKqIGh5FatUmwxFrU/61YhEicebgJiN+PkEuA+4u RBog== X-Gm-Message-State: AG10YOSAiS4RxX1CyLY6cPuV4n/Bl8Bl4eSFwogIyLbUeuShPO+yZWtxxvwRg93UB8ZDAQ== X-Received: by 10.66.220.66 with SMTP id pu2mr66617609pac.115.1456437439235; Thu, 25 Feb 2016 13:57:19 -0800 (PST) Received: from lab.us-west-1.compute.internal (ec2-54-183-105-171.us-west-1.compute.amazonaws.com. [54.183.105.171]) by smtp.gmail.com with ESMTPSA id r77sm14342649pfa.47.2016.02.25.13.57.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Feb 2016 13:57:18 -0800 (PST) From: Gabe Evans To: buildroot@buildroot.org Date: Thu, 25 Feb 2016 21:55:35 +0000 Message-Id: <1456437341-19025-27-git-send-email-gabe@hashrabbit.co> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456437341-19025-1-git-send-email-gabe@hashrabbit.co> References: <1456437341-19025-1-git-send-email-gabe@hashrabbit.co> Subject: [Buildroot] [PATCH 26/32] package/systemd: add optional support for coredump X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Gabe Evans --- package/systemd/Config.in | 8 ++++++++ package/systemd/systemd.mk | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index 0069fed..1596d88 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -223,6 +223,14 @@ config BR2_PACKAGE_SYSTEMD_LOCALED http://www.freedesktop.org/software/systemd/man/systemd-localed.service.html +config BR2_PACKAGE_SYSTEMD_COREDUMP + bool "enable coredump hook" + help + systemd-coredump can be used as a helper binary by the kernel when a user + space program receives a fatal signal and dumps core. + + http://www.freedesktop.org/software/systemd/man/systemd-coredump.html + config BR2_PACKAGE_SYSTEMD_NETWORKD bool "enable network manager" help diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index b962131..3e6d055 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -223,6 +223,12 @@ else SYSTEMD_CONF_OPTS += --disable-localed endif +ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y) +SYSTEMD_CONF_OPTS += --enable-coredump +else +SYSTEMD_CONF_OPTS += --disable-coredump +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y) SYSTEMD_CONF_OPTS += --enable-networkd define SYSTEMD_INSTALL_RESOLVCONF_HOOK @@ -283,6 +289,7 @@ SYSTEMD_POST_INSTALL_TARGET_HOOKS += \ SYSTEMD_INSTALL_RESOLVCONF_HOOK define SYSTEMD_USERS + systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper systemd-journal -1 systemd-journal -1 * /var/log/journal - - Journal systemd-journal-gateway -1 systemd-journal-gateway -1 * /var/log/journal - - Journal Gateway systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote