From patchwork Wed Feb 5 08:13:18 2020
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pascal de Bruijn
X-Patchwork-Id: 1233711
Return-Path:
X-Original-To: incoming-buildroot@patchwork.ozlabs.org
Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org
Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized)
smtp.mailfrom=busybox.net (client-ip=140.211.166.136;
helo=silver.osuosl.org;
envelope-from=buildroot-bounces@busybox.net;
receiver=)
Authentication-Results: ozlabs.org;
dmarc=none (p=none dis=none) header.from=unilogic.nl
Authentication-Results: ozlabs.org;
dkim=fail reason="signature verification failed" (1024-bit key;
unprotected) header.d=unilogic.nl header.i=@unilogic.nl
header.a=rsa-sha256 header.s=selector1 header.b=i/S/eguW;
dkim-atps=neutral
Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
bits)) (No client certificate requested)
by ozlabs.org (Postfix) with ESMTPS id 48CDv04Wrgz9sPK
for ;
Wed, 5 Feb 2020 19:17:16 +1100 (AEDT)
Received: from localhost (localhost [127.0.0.1])
by silver.osuosl.org (Postfix) with ESMTP id 772A520797;
Wed, 5 Feb 2020 08:17:11 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from silver.osuosl.org ([127.0.0.1])
by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id qfz27hmE7zfN; Wed, 5 Feb 2020 08:17:08 +0000 (UTC)
Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34])
by silver.osuosl.org (Postfix) with ESMTP id 7F6D12010F;
Wed, 5 Feb 2020 08:17:08 +0000 (UTC)
X-Original-To: buildroot@lists.busybox.net
Delivered-To: buildroot@osuosl.org
Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])
by ash.osuosl.org (Postfix) with ESMTP id DB41B1BF38A
for ;
Wed, 5 Feb 2020 08:17:06 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by whitealder.osuosl.org (Postfix) with ESMTP id D21EF8618E
for ;
Wed, 5 Feb 2020 08:17:06 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from whitealder.osuosl.org ([127.0.0.1])
by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id q8j79bWSFLof for ;
Wed, 5 Feb 2020 08:17:03 +0000 (UTC)
X-Greylist: from auto-whitelisted by SQLgrey-1.7.6
Received: from EUR01-VE1-obe.outbound.protection.outlook.com
(mail-eopbgr140073.outbound.protection.outlook.com [40.107.14.73])
by whitealder.osuosl.org (Postfix) with ESMTPS id CE79B861E7
for ; Wed, 5 Feb 2020 08:17:01 +0000 (UTC)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=myDIIHXMV9uxuFtBSd0waxp1iAEuafX61TdYeoqKFRuvCNfWe66gFAXetGjSUxdKBGhy6ojxfdAVYc3eKN7HVOadg+ktmWxJlCgS6s7dFZ3HQ6jQWKT5A3IuPtcT6HVXEYPu7NYf689kuxQpv/eLZ/IdVBwwZkDq9UVXq/8np0InZM4m8UaWUJo3aeCPlpF9xZsqi0WklmiInlW7EhLV61kOVl8z9VQNl2b1y0HDOuEA9cQFjU0iX9PENe0pqHUxv9+PV+Q/PhbQfgyu/TXfqqU8V0Q3OFc1pl8Y3KfQVZaaUEYi+/UfXBm5TYTlymVdJKj0qN4W11j7FUXmCo8gIQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=5cwStSmNGV8ZkaWH1MCPGkExqCVvcgXIoT4BPG928Z4=;
b=FSLJc/u2MhSwk1C3BwpOuocZcZQ2KImcf01u8kbBkdeqxEwF8GV1++x0v76bzXaClTeOVABxCFjEh28H13H4xVdwaaEJlgBi5E1bNQ4cCH7/2NEu0xpVv9mBqHn6Eg+NnK/vrSw+RbQsTdF07ut9VErEhmFvSYBELdWFirL2cvNJ2RQOZla3/rcjuQTJQVuKe9PJzkF6G3NjsfAJ6cgTximc57yikpSjReiS7s4CPUCfP72EGTF0xjomHqvpn6aFCta0fCtNugwmFpBuHKYyor0c2B2POhbta6rRvotpBPRByx1mmvZniqMpz6OAZXOF9mBIVMT+QBaADyEKc3xyyQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=unilogic.nl;
dmarc=pass action=none header.from=unilogic.nl;
dkim=pass header.d=unilogic.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unilogic.nl;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=5cwStSmNGV8ZkaWH1MCPGkExqCVvcgXIoT4BPG928Z4=;
b=i/S/eguW9uFuuZpMqab+7SFSM4urS1g+FN8ChQPB4aY0mX5gB1dVKKfFv54W8sE9VhJl4dwu16JhBZZam9k0lVa+q+BzCdbHuZGFcm/i63B2gwh20vP7bEn74eseC8zPvVcMRNLncElJncMaMNYBqcPJaHDAsYmkJ5+rLEYpSck=
Authentication-Results: spf=none (sender IP is )
smtp.mailfrom=p.debruijn@unilogic.nl;
Received: from HE1PR07MB3401.eurprd07.prod.outlook.com (10.170.247.28) by
HE1PR07MB3292.eurprd07.prod.outlook.com (10.170.246.139) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.20.2707.12; Wed, 5 Feb 2020 08:16:57 +0000
Received: from HE1PR07MB3401.eurprd07.prod.outlook.com
([fe80::2c24:9b3f:ce22:95a1]) by
HE1PR07MB3401.eurprd07.prod.outlook.com
([fe80::2c24:9b3f:ce22:95a1%7]) with mapi id 15.20.2707.018;
Wed, 5 Feb 2020 08:16:57 +0000
From: Pascal de Bruijn
To: buildroot@busybox.net
Date: Wed, 5 Feb 2020 09:13:18 +0100
Message-Id: <20200205081318.3911-1-p.debruijn@unilogic.nl>
X-Mailer: git-send-email 2.17.1
X-ClientProxiedBy: AM0PR02CA0011.eurprd02.prod.outlook.com
(2603:10a6:208:3e::24) To HE1PR07MB3401.eurprd07.prod.outlook.com
(2603:10a6:7:2d::28)
MIME-Version: 1.0
Received: from optiplex-pbrui.unilogic.local (62.133.193.10) by
AM0PR02CA0011.eurprd02.prod.outlook.com (2603:10a6:208:3e::24) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.20.2686.32 via Frontend Transport; Wed, 5 Feb 2020 08:16:57 +0000
X-Mailer: git-send-email 2.17.1
X-Originating-IP: [62.133.193.10]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: f5a7138b-a36c-483b-3322-08d7aa13c461
X-MS-TrafficTypeDiagnostic: HE1PR07MB3292:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS:
X-MS-Oob-TLC-OOBClassifiers: OLM:3826;
X-Forefront-PRVS: 0304E36CA3
X-Forefront-Antispam-Report: SFV:NSPM;
SFS:(10009020)(346002)(396003)(376002)(136003)(366004)(39830400003)(199004)(189003)(6506007)(2616005)(6916009)(956004)(6512007)(52116002)(2906002)(86362001)(107886003)(26005)(8676002)(6666004)(316002)(4326008)(81156014)(8936002)(81166006)(5660300002)(1076003)(36756003)(186003)(66946007)(508600001)(16526019)(6486002)(66556008)(66476007);
DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3292;
H:HE1PR07MB3401.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en;
PTR:InfoNoRecords; A:1; MX:1;
Received-SPF: None (protection.outlook.com: unilogic.nl does not designate
permitted sender hosts)
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
vMJS1kq2K+7aP98kgwF5DGiRI2n4h56obHkiQpKUR3mR5WIFLftP0BUL7bRFNZh7iq/MQTb+vXak5/EMON9fLbZGmp+JjdHLEFhOD4/j2mRWPBX2bpkJpEsKapeyibeAFs+SsLtiF2IiHuWv1yiq/JR7KIDqL/H6JM0vUGrIA6sxGKugLeB/iQvwOYrY96LcmI6xLTMj8A4fVGmnqspO/fyWl5m8LaUTUAwd4Ou5OINHJsMK81LxqosL3epfHSs3c4LUPTxcabh5oNWF6mTC7NRVMzyWCYpZ0v/4Gz1OA7hWmxYVeOK6C6qhZCEdLX7aDuPwb6meD+w91foBNrI9sxVR5ms4HINO9eozr+/d2ZHmalnNJnyvWiItjgA/1CgLV8J/MmIFsWA2yJWTie7tiwxQjG8FVG70aCvVe9MFMmepz8W7NhPLogC1NphDh1/R
X-MS-Exchange-AntiSpam-MessageData:
eSw87q7oJuVvKb0ktPdmp4TKynqGUbOjc+1VRwsYKyzOQPNppZRgy0a14xjcypG6j4usblvcxb5sAdFc6p2u0n2jAE5lEn1HjoZ0d3BQm9e3cJc09/mMMuaVaQ5xyaExIq1I7n8C5fJixUobhKinxQ==
X-OriginatorOrg: unilogic.nl
X-MS-Exchange-CrossTenant-Network-Message-Id:
f5a7138b-a36c-483b-3322-08d7aa13c461
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2020 08:16:57.4078
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 80e1d02e-cf3d-42a6-8024-091a212ef6af
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
WZlYosUqvjkIL1HMC2KFvv1yk0EN0rVzXop/OQmlVJDjqR77Au3THFourMHost/7c8i8NtdIBh35Vy4uSl/gnA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3292
Subject: [Buildroot] [PATCH] package/lvm2: lvmetad systemd integration
X-BeenThere: buildroot@busybox.net
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion and development of buildroot
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: Pascal de Bruijn
Errors-To: buildroot-bounces@busybox.net
Sender: "buildroot"
lvmetad is usually combined with event-based system services that
automatically run pvscan --cache on disks added or removed. This
way, the cache is automatically updated with metadata from new disks
when they appear. LVM udev rules and systemd services implement this
automation. Automatic scanning is usually combined with automatic
activation. For more information, see pvscan(8).
Signed-off-by: Pascal de Bruijn
---
package/lvm2/Config.in | 3 +++
package/lvm2/lvm2.mk | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in
index de5b972..a828c31 100644
--- a/package/lvm2/Config.in
+++ b/package/lvm2/Config.in
@@ -44,6 +44,9 @@ config BR2_PACKAGE_LVM2_APP_LIBRARY
help
Install application library (liblvm2app).
+ Enable this if you need systemd integration,
+ like automatic activation of LVM logical volumes.
+
comment "lvm2 application library needs a glibc or uClibc toolchain"
depends on BR2_TOOLCHAIN_USES_MUSL
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index 3da713f..5cf6d93 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -54,6 +54,12 @@ else
LVM2_CONF_OPTS += --disable-applib
endif
+ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY)$(BR2_PACKAGE_SYSTEMD),yy)
+LVM2_DEPENDENCIES += systemd
+LVM2_CONF_OPTS += --enable-lvmetad
+LVM2_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install install_systemd_units install_systemd_generators
+endif
+
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
endif