From patchwork Fri Sep 12 15:57:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 70091 X-Patchwork-Delegate: steve@sakoman.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E708FCAC58F for ; Fri, 12 Sep 2025 15:57:26 +0000 (UTC) Received: from DB3PR0202CU003.outbound.protection.outlook.com (DB3PR0202CU003.outbound.protection.outlook.com [52.101.84.36]) by mx.groups.io with SMTP id smtpd.web10.20416.1757692642092607846 for ; Fri, 12 Sep 2025 08:57:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=QWIBDgEj; spf=pass (domain: axis.com, ip: 52.101.84.36, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N4IIau4PEWj3l4Ex49JLQHICeebW9zsrzOLQL0bksKcAirP6mpMGdYo2bRnIEtNxasGJn5ScfyzA4ObFlsNJf3CBVFRJFWKTaHCF6LdkcR1z8fYYMZytJZdzazR3mVe9imP12FnSnbQ28R9C0v+LMIll0335w6ifLBiAVcnVVr7SXfxWm5TD7iozRwkDqFlRtQlrIf+lWBNlnXpXYR84JQA//fNJXXtHV0hXbbEcMYgzdlq/+CSwEpdqz7koHOUg2DNi1Tni3iX6vGTWndCzumWg7SFmWB+/Dad3SpIFBWePIieYk3oQePQ1ygNYLqbrvwnYs5PZBlRtn7h3CtayUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gtCazAhjfGipb57ZLjKtWQzVbiEJqgVHia5mFnE/bWE=; b=mU4N7BqHuE5lC7RBjXVoB94k3wBEd9qjAA2KTC9JbyLFp50NBLhdZ/3PtwUQUCtdFQBS4XoPZMc3kWna24WFdSonWS1Tg6g4CrA8Wise1SCED0PFsj6UXrbDXLzRqFztaXwKlHF7PSZAmsG86XIWV+OPcnsu9TvG96ua6wiQOp4B1luaMt40IH5Zs27SmSq8AGEO3ZIqAeN7omBCdawAAjcS1sNGLIc/HZbds1ETw6P1KXWbhhtosTCJeDiiyXZF/+iyBfJj2SfylyPTk1IWXT0Lz0ULHR0Gy8v5NfdU7SIlT1i5KpVou/68m7H49ySjE/fcgJRG7kTUjL7q+pV+Xg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gtCazAhjfGipb57ZLjKtWQzVbiEJqgVHia5mFnE/bWE=; b=QWIBDgEjjxO42OvgH85AwBlmC9U1/vPIyHxC3aCZk7ZtZLVfWZr5fqg29i/SS2qFjDFXyrx2Y8UEQ+OO2gOrzuEe8wJHNpA+U9KyS02NpCxjJluzt0gOSe8+r7jDz2Q3nIgnfttOIzlwqR6LlFfFwstADPoAmTTZN8rEjJ+rzMw= Received: from AS4P189CA0038.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::10) by AM9PR02MB6721.eurprd02.prod.outlook.com (2603:10a6:20b:2c5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9094.22; Fri, 12 Sep 2025 15:57:16 +0000 Received: from AMS1EPF00000045.eurprd04.prod.outlook.com (2603:10a6:20b:5dd:cafe::7a) by AS4P189CA0038.outlook.office365.com (2603:10a6:20b:5dd::10) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9115.18 via Frontend Transport; Fri, 12 Sep 2025 15:57:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AMS1EPF00000045.mail.protection.outlook.com (10.167.16.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.9115.13 via Frontend Transport; Fri, 12 Sep 2025 15:57:16 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Fri, 12 Sep 2025 17:57:15 +0200 Received: from se-intmail02x.se.axis.com (10.4.0.28) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Fri, 12 Sep 2025 17:57:15 +0200 Received: from pc56063-2339.se.axis.com (pc56063-2339.se.axis.com [10.92.3.2]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 7D3281E0F for ; Fri, 12 Sep 2025 17:57:15 +0200 (CEST) Received: by pc56063-2339.se.axis.com (Postfix, from userid 14323) id ECC0C120468; Fri, 12 Sep 2025 17:57:14 +0200 (CEST) From: Peter Kjellerstedt To: Subject: [walnascar][PATCH 1/3] systemd-systemctl-native: Use += instead of :append Date: Fri, 12 Sep 2025 17:57:10 +0200 Message-ID: <20250912155712.3340513-1-pkj@axis.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS1EPF00000045:EE_|AM9PR02MB6721:EE_ X-MS-Office365-Filtering-Correlation-Id: 87394fde-2729-418a-1ffd-08ddf2150bb4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|376014|1800799024|13003099007; X-Microsoft-Antispam-Message-Info: VV3PG0YxGU99CrWZ5KprUpQchGnWo23PIW6CYGUmvfNMD/LzHXyAN7GYCXbRZmrbK44+46bJrWflAVZ0/3ZF7aCzcfpk6z8UgpI87uQ1DYjFKX7UPJ/zT9RsaRXqqeLzCH+DFZ8iDfQ5aBgFqFwCZp7g3Zh019cTj7e9hAVi2PC6dNnNmAFfUFcJxL2xJR7tJEclYXtcSYPXVUF4Ux38tQ46wDdandV5dneZNoOlItOD1wVOGq7qFhqYnaagsGMHj6J7m5AAEWvygMvz2Yk9LVgllefSca3Hck0g++CRfJnLYUF0knuOWHwQM38MlCr0nICPUR+PjpkzK6/hB7aj6bZZMxono94pL50fGI5asqp3bZdDQiketywgGyT41bIU+kD5+YicU4PbLDiwDvJcF6B2RbmaIS5aNQflSwsivVrMi/nRpLt+cNqEhpSlN3S0sEnhAv44kRQNIv3Zoo7Qaa3dN+dmrJDOEf+vRuqyc5EhQakg6OHnavONRKIo+bbbYUHAuuar9nnsu9cbDz6wHnBii6GSSOjTW0Q/icuzBKb/+V9ih6PZho2jTInvu4pFDIjtCTphg13j3qMFH4FKVZylyaKxF1zcKZMiorMB7gSkaV3nmDCaojMXZXPCGT//loSlUqYzq9q0Ve6EekiOKgX8ZglE/lyt2vMWK4kG9C5Z4lIlIe1i6C0KsVf9Hvk2hKtQK90AHU7AQYTlatYFCzJMYM5+MrbPQWxWc14PZTSVGbaKzeeiF6LRdQes7DQg4SnnGej+XDzpVoQFAPZiiJERfk6MHI7NMoRlqkYIbV3S7qut8pgDpxwuUmJzeWR7N9rlidNcjYvh56ShbR9o9fi5AcbAEuXubBp3CMJynnXRWIDAMOYm4SA+WR2qS+jDpoAR+2UoKswvXrAozdPtJKDW+TZIEfSDtABDVbm65JUTV+sg06pA3EsTbz5HOThqb12kFvQ7x6F3RVUPzxORZDkEac6a3+KDs3L+cwbHNBIqrHYOHPuNAaG3FYBu78J+nJt/4Pu5qRE0qcj52BwEm9u4AJIuixdigZwUDDjHPDHodBIfZvx56bavBIdX5Ca1sV+qQING3bgdT0GyhChx6jzMXqLVSrFt70mlXkJwCatGngUJE/61TOtz0wD2s6/40M8l/L4QHsvQUhvcnva5wWlBjAZMvSBX5Hg0FWtuX4V7BUflFtQAxEOaWAry1bGPVxkXkkbIaNy39EaXH/z6ZXVha8N3mt/Xv4sI4yskjAm8ImeKp0fABwP2nz4AQIiRSW+lI68VNIWx6s6dJMpcGlAMMT0beHJYSvYmpkCfI3nEmh0aRDxNFmzIlhO6qOtJ8zeDhqJVzXVK9jW/FJdcqlbcNYu3cfcVL7VgO6+Vd5TTSCRErgzcj/UPD9G9m87Q406L9cj/y0KSI6czkRcuG0ieXwBS4tw7ciTtNI7Iol7C7M1ph+lFRzFbHM0BXYpnovGkvnmEbVpPZqR3yXtCu6blSMamIkL2Y55j+SnFu39IwO/nVzjP5hib+FoJxNa1 X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024)(13003099007);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2025 15:57:16.0675 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87394fde-2729-418a-1ffd-08ddf2150bb4 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF00000045.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR02MB6721 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 12 Sep 2025 15:57:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223326 From: Peter Kjellerstedt There is no reason to use EXTRA_OEMESON:append when += will do. Signed-off-by: Peter Kjellerstedt --- meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb b/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb index 73862b4e23..041a040a26 100644 --- a/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb +++ b/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb @@ -8,9 +8,9 @@ inherit pkgconfig meson native MESON_TARGET = "systemctl:executable" MESON_INSTALL_TAGS = "systemctl" -EXTRA_OEMESON:append = " -Dlink-systemctl-shared=false" +EXTRA_OEMESON += "-Dlink-systemctl-shared=false" # Systemctl is supposed to operate on target, but the target sysroot is not # determined at run-time, but rather set during configure # More details are here https://github.com/systemd/systemd/issues/35897#issuecomment-2665405887 -EXTRA_OEMESON:append = " --sysconfdir ${sysconfdir_native}" +EXTRA_OEMESON += "--sysconfdir ${sysconfdir_native}" From patchwork Fri Sep 12 15:57:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 70092 X-Patchwork-Delegate: steve@sakoman.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5FBDCAC582 for ; Fri, 12 Sep 2025 15:57:26 +0000 (UTC) Received: from DU2PR03CU002.outbound.protection.outlook.com (DU2PR03CU002.outbound.protection.outlook.com [52.101.65.49]) by mx.groups.io with SMTP id smtpd.web10.20415.1757692641537686329 for ; Fri, 12 Sep 2025 08:57:21 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=AlS+PWxl; spf=pass (domain: axis.com, ip: 52.101.65.49, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=W9rBkdthKhdsc/Hj1PAuThh06pb68RrHk7ZJUKvPnkmJZuza/fb9rMIKjtUfMSfQuSdTPKkoSExTktMhijFwimnm7u2WTldIh75l+tssNHyl2T52HFiXtFyQy0qO11sJFAalOu5SP/uGrlcWVRragZj/7ki9n1FglBatwaiyxNjHl0dgUZhxElzO1u5VDcFUYW7XImHYMr7k3xMVo0B006S7Bibm7nsnjHB0XPuiYQ/p36ClCS4/LiufXbo2p4mVc8VU1HFPKjOZDoSfl6hSDuYFa59LXQn7ifzBB5H4ySo7r2fBdRUaNutqewP0GScCdhRYrUyfn9NV2lvSReufgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1J9XXNhDbwJMQNfAkU0i34g+plD22ot6yPzIMrRHjGY=; b=sDjO1lLwFdCmeU/CQosY71FOpZIDplF+GXxjAnwC9OjqRF3trWYNFxQOvLfC0Em8y/TGj8d/oqO97nYGOVZrnewxs3amjt8UGA2k1YkzV8PtJDH/JB91BWofiJRIx3FhEKdZ0yvH+Xxo4yly5/wqMnqAdOFdimXGpTJnDWcWoAwtCfZ/uT4GwYLkO9K5axh6FwGg3vBaAe0V/dgMLXHpjyb+lGvk2r6xWkd8DIbLuIPZXpvy8WLCPwh+5zan5PsTSNHjKVDVRXv4TsoSnlwaSp8mQ0n5797UBGdGRELbz9QCdKyzsv15I/Zc/A30ty3fCpYN89Th1+fq19asY0A3Kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1J9XXNhDbwJMQNfAkU0i34g+plD22ot6yPzIMrRHjGY=; b=AlS+PWxlFlJiN7IUrFrhtoD5FFJtJi+cbeFPMzpTcDpUQXWZD/66nbMjsbiYlNZwCcreCWIBd+oF1D1fr0JWSRvNg+GMWupUk3O947LYqdETFq/I3Tfm8GoL8tb+5RGiMh3hvKqs6D2NocwdYTkHx7ry5esfIO+39Gkk3mVaqXk= Received: from AS4P189CA0032.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::18) by PA6PR02MB10814.eurprd02.prod.outlook.com (2603:10a6:102:3d7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9094.22; Fri, 12 Sep 2025 15:57:16 +0000 Received: from AMS1EPF00000045.eurprd04.prod.outlook.com (2603:10a6:20b:5dd:cafe::f5) by AS4P189CA0032.outlook.office365.com (2603:10a6:20b:5dd::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9115.18 via Frontend Transport; Fri, 12 Sep 2025 15:57:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AMS1EPF00000045.mail.protection.outlook.com (10.167.16.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.9115.13 via Frontend Transport; Fri, 12 Sep 2025 15:57:16 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Fri, 12 Sep 2025 17:57:15 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Fri, 12 Sep 2025 17:57:15 +0200 Received: from se-intmail02x.se.axis.com (10.4.0.28) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Fri, 12 Sep 2025 17:57:15 +0200 Received: from pc56063-2339.se.axis.com (pc56063-2339.se.axis.com [10.92.3.2]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 7EA841EAB for ; Fri, 12 Sep 2025 17:57:15 +0200 (CEST) Received: by pc56063-2339.se.axis.com (Postfix, from userid 14323) id F1A911204AD; Fri, 12 Sep 2025 17:57:14 +0200 (CEST) From: Peter Kjellerstedt To: Subject: [walnascar][PATCH 2/3] systemd-systemctl-native: Install systemd-sysv-install Date: Fri, 12 Sep 2025 17:57:11 +0200 Message-ID: <20250912155712.3340513-2-pkj@axis.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250912155712.3340513-1-pkj@axis.com> References: <20250912155712.3340513-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS1EPF00000045:EE_|PA6PR02MB10814:EE_ X-MS-Office365-Filtering-Correlation-Id: 242e5c28-ae3e-4ef5-072e-08ddf2150bc9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|376014|36860700013|13003099007; X-Microsoft-Antispam-Message-Info: uE4wrJ08bgJ8dTeZpL1HyBdfKABAGPdyKHh2fz6vGYYz4q87GjCQtKq8TkvM96KaNBgBaM7ndUTrjRszLZ1iKUqLUZncAxN5cnqGCmnIEAalEaQMTTCwfzHucBOw3tX1POGo9oy4KmV713xoy42UweH4+5R7VSu3+nTskh4lV8GZTvk4RdBJQGDWN6+hwbveOTjKIOgICx06DUf0TuSChZec9LuDjmmKqxjAfHkLNHLY4Lyo2LdQmHvt5CnPezrm9ou4rWvbRobgW8v96FjAkqm34/HWu6FVultKX9f1VlD7SZrS6jrFdTql/gdzHT4D9l8wYgDifRGfTV6KZkvIH0oYi2nv4PhhcFhi6ajd2NMfqEQy116dT/Xz2cXvZTNPwDWmLK7XGIEI/vLzM3TPsZZzAxnJhdUhG2yQniF6hQWCSj5IFjYQVSPj7/fRI2EL68SZQjdBr+HomoF+oEGZYm81+7EUBTouIy4iZ4vCSva12MYYrx4RanfRpQfNNtxllPrAVdAfi5o8UyovA/K+xs3X5FPYBk3f3nDjZuvch/Nsyu1rRku0/wlwXMnNGbP9hmLajm6TkvpxzhPN97VZRtOBmSBgJLyrcg2Qr1fPtpNZG0zx/s+FALDHAYljJsLo85xyCgQC5omFrp2EmgKl3wOqbWhmvAg7fQdNd34jTGBxWMyuyN0MdCfhtolWp/pFTM/0ZNbDB41Iza5rEsQ72vSuR3aQx1uzx+OquIqdEs18YggpRlqBVpwQxmAF5ljvvZTXACo76T6sQYKfQMY+bHu/aCgP6RIwPpWUK9RBzfJogpx9iJs5Abu80oSxhcY3XhkTWeWBrLxZwoaPMVC7+UhSu9dPXsBPnnWO4jq2s+y5ciVBH10vneTeRHPLI704XpqEDIHwrp9TOf0lPTTmO+1HWmU/jGht6YfwEAjQB/d+PyfTce5OE9sLnU95myFuC4bVvP6kf0NZs8MfIItJN+F7lIis3Sz7Yug6X6eHf/PiBpV0+774mc1dTt+zLoEogZxX7TmWjsH410ipkO578DzdY2yl7iZiwJ11md4hZXJ7feRT72rAvBZweHJyg1Bz4N9zNtbvMpJ/1ZrFmCQZ4JY5jEVD0egTUKgYLEnMNEx4AlD7OLAo2Rd5H1PvO8n35n6ITAGzsemTdOpf0zBlP0jcpcgZU0vzQESS3MnvTaYleNYrajS6iCB+kQoLSq0Vvtqna9xQ18DwzOPjKjumljjPsBKO6kLMoxftQB1xR9C0Q7xOnVQZAC7I504mxROtmMMfP1fIH5Ai+OIsbwoBHLGoiSC1XlfQV3bhCuutrl3/7nENlotd2C0+1SXAGkceJbwaU8uZO5nWaQNVJsF2YRc/uyq1j4bS0gyuK3dWjIFCzHem6o8Xs/Kh9C2GrCYuUcE1Q2jPI0AryHCdXR88UcPYqjN+PHejnfci6jHpYia1YTXGmws6KwN1a8rQ4iQYLwPbpE08ii9k49Vjz+g823PPnqkN4HfUxKpz4P8PaaP4AEIgCrWt0UNjuvqlM26Y X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013)(13003099007);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2025 15:57:16.2041 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 242e5c28-ae3e-4ef5-072e-08ddf2150bc9 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF00000045.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR02MB10814 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 12 Sep 2025 15:57:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223325 It is needed when support for both systemd and sysvinit are enabled. This also adds a patch for systemctl to call systemd-sysv-install without a hardcoded path and instead relies on finding it in $PATH. This is needed when calling systemctl from a recipe sysroot. Signed-off-by: Peter Kjellerstedt --- Compared to the corresponding change integrated to master, I have removed the comment about upgrading to systemd 259 as that will never happen for Walnascar. .../systemd/systemd-systemctl-native_257.6.bb | 11 ++++++ ...ll-systemd-sysv-install-without-path.patch | 37 +++++++++++++++++++ ...implment-systemd-sysv-install-for-OE.patch | 13 +++---- 3 files changed, 53 insertions(+), 8 deletions(-) create mode 100644 meta/recipes-core/systemd/systemd/0001-systemctl-Call-systemd-sysv-install-without-path.patch diff --git a/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb b/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb index 041a040a26..4486edf651 100644 --- a/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb +++ b/meta/recipes-core/systemd/systemd-systemctl-native_257.6.bb @@ -1,9 +1,14 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/systemd:" + SUMMARY = "Systemctl executable from systemd" require systemd.inc DEPENDS = "gperf-native libcap-native util-linux-native python3-jinja2-native" +SRC_URI += "file://0001-systemctl-Call-systemd-sysv-install-without-path.patch" +SRC_URI += "file://0002-implment-systemd-sysv-install-for-OE.patch" + inherit pkgconfig meson native MESON_TARGET = "systemctl:executable" @@ -14,3 +19,9 @@ EXTRA_OEMESON += "-Dlink-systemctl-shared=false" # determined at run-time, but rather set during configure # More details are here https://github.com/systemd/systemd/issues/35897#issuecomment-2665405887 EXTRA_OEMESON += "--sysconfdir ${sysconfdir_native}" + +do_install:append() { + # Install systemd-sysv-install in /usr/bin rather than /usr/lib/systemd + # (where it is normally installed) so systemctl can find it in $PATH. + install -Dm 0755 ${S}/src/systemctl/systemd-sysv-install.SKELETON ${D}${bindir}/systemd-sysv-install +} diff --git a/meta/recipes-core/systemd/systemd/0001-systemctl-Call-systemd-sysv-install-without-path.patch b/meta/recipes-core/systemd/systemd/0001-systemctl-Call-systemd-sysv-install-without-path.patch new file mode 100644 index 0000000000..bf08dbe9b0 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0001-systemctl-Call-systemd-sysv-install-without-path.patch @@ -0,0 +1,37 @@ +From 34c8551a8b16bf235a1ebe8d9cb1a3474a7c975e Mon Sep 17 00:00:00 2001 +From: Peter Kjellerstedt +Date: Fri, 22 Aug 2025 18:07:28 +0200 +Subject: [PATCH] systemctl: Call systemd-sysv-install without path + +Expect to find systemd-sysv-install in $PATH instead of hardcoding the +path to it, as the latter does not work when running systemctl from a +recipe sysroot. + +Signed-off-by: Peter Kjellerstedt +Upstream-Status: Inappropriate [OE specific] +--- + src/systemctl/systemctl-sysv-compat.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/systemctl/systemctl-sysv-compat.c b/src/systemctl/systemctl-sysv-compat.c +index cb9c43e3dc..e44ef9f64e 100644 +--- a/src/systemctl/systemctl-sysv-compat.c ++++ b/src/systemctl/systemctl-sysv-compat.c +@@ -140,7 +140,7 @@ int enable_sysv_units(const char *verb, char **args) { + while (args[f]) { + + const char *argv[] = { +- LIBEXECDIR "/systemd-sysv-install", ++ "systemd-sysv-install", + NULL, /* --root= */ + NULL, /* verb */ + NULL, /* service */ +@@ -218,7 +218,7 @@ int enable_sysv_units(const char *verb, char **args) { + return j; + if (j == 0) { + /* Child */ +- execv(argv[0], (char**) argv); ++ execvp(argv[0], (char**) argv); + log_error_errno(errno, "Failed to execute %s: %m", argv[0]); + _exit(EXIT_FAILURE); + } diff --git a/meta/recipes-core/systemd/systemd/0002-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0002-implment-systemd-sysv-install-for-OE.patch index d8bb572261..98d050ceae 100644 --- a/meta/recipes-core/systemd/systemd/0002-implment-systemd-sysv-install-for-OE.patch +++ b/meta/recipes-core/systemd/systemd/0002-implment-systemd-sysv-install-for-OE.patch @@ -1,7 +1,7 @@ -From fab8c573d06340868f070446118673b1c23584c5 Mon Sep 17 00:00:00 2001 +From 4a5602ede9881fd8e578a3c8bc40dd5df7c4d802 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 5 Sep 2015 06:31:47 +0000 -Subject: [PATCH 02/26] implment systemd-sysv-install for OE +Subject: [PATCH] implement systemd-sysv-install for OE Use update-rc.d for enabling/disabling and status command to check the status of the sysv service @@ -14,7 +14,7 @@ Signed-off-by: Khem Raj 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/systemctl/systemd-sysv-install.SKELETON b/src/systemctl/systemd-sysv-install.SKELETON -index cb58d8243b..000bdf6165 100755 +index cb58d8243b..eff3f5f579 100755 --- a/src/systemctl/systemd-sysv-install.SKELETON +++ b/src/systemctl/systemd-sysv-install.SKELETON @@ -34,17 +34,17 @@ case "$1" in @@ -22,13 +22,13 @@ index cb58d8243b..000bdf6165 100755 # call the command to enable SysV init script $NAME here # (consider optional $ROOT) - echo "IMPLEMENT ME: enabling SysV init.d script $NAME" -+ update-rc.d -f $NAME defaults ++ update-rc.d ${ROOT:+-r $ROOT} -f $NAME defaults ;; disable) # call the command to disable SysV init script $NAME here # (consider optional $ROOT) - echo "IMPLEMENT ME: disabling SysV init.d script $NAME" -+ update-rc.d -f $NAME remove ++ update-rc.d ${ROOT:+-r $ROOT} -f $NAME remove ;; is-enabled) # exit with 0 if $NAME is enabled, non-zero if it is disabled @@ -38,6 +38,3 @@ index cb58d8243b..000bdf6165 100755 ;; *) usage ;; --- -2.34.1 - From patchwork Fri Sep 12 15:57:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 70093 X-Patchwork-Delegate: steve@sakoman.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA726CA101F for ; Fri, 12 Sep 2025 15:57:26 +0000 (UTC) Received: from AM0PR02CU008.outbound.protection.outlook.com (AM0PR02CU008.outbound.protection.outlook.com [52.101.72.51]) by mx.groups.io with SMTP id smtpd.web11.20612.1757692642753138418 for ; Fri, 12 Sep 2025 08:57:23 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=nsktTBbZ; spf=pass (domain: axis.com, ip: 52.101.72.51, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TtLayKJ84OxH/Qrod2CuttlQtuLGTwJN1lKXbcd/nORbwSkfRYE/ne0klih1SKMGLNUih5h94Aae0BtDPJeKizDW1r36mkBckfALgEKvl/OBoYRLsyFSWv/UKFo8cABkTHmE9iD6VseTl02mQjDV91MRwArahgUVmcKlpKTu4DfFyUXrb6gWPxrNt4j8WFb3zePNuLLoUnfbkKN3+XsxJX7mazsq8nmwxSqX8jHSTq0J3eenyqSoZxn+HaouFZA2Vnaeurg+Ew/TcBac8Ztl//4tAEf1UDdlrK/SEWIjcQw+Uj68YMTBmQOCeB89dG0Y9i7iipRIhnLKoXxV5QnpXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D6vg9r4m9mpPCml9MXwZBVKOiMHc+t6I4dHY8QdLhT0=; b=D+cyTTr9ozF8sqCR7Z2OJ4/nCc+X824ykIny6iLWSzArRd4idtTDv0O30VCKi56JX7Vi3+1G4O9634f9HBMqu1baAH0dH8R/lLWPzvgsTIup5GQ+nXdqE060nCM6JR7R1SqrfnIhJG5GkhovLWHVmVoBpi6BeAxfDwet3tn5Bqb0ON+bjcHlylfxsqmMDY96fDq6uRHXivWbCREKBx46CwXugHwShkTtIpImL3/DNBBeujS6rbx+zf5gmQk9c+ZW6n3VvAmplcg30rvG2twmaLm5HwuTD2g/l99Rmb5l6u9WbC37jMLHbCSahzWcoeSAk4WXTsAFRRGX2FYtgrawhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D6vg9r4m9mpPCml9MXwZBVKOiMHc+t6I4dHY8QdLhT0=; b=nsktTBbZWmX/CjQuTvcGZ618Lu73p5cvjmGDjAx1u2vLJ12Ca76Ug3gjwlo4LxiiCO0IYZeyXDTdMnFtBqMCRq8XWzho0dIIzgyZ941JUIxUM53lfB9fGbDTE9BJxmQWr1rYLbyFrPHsUF+w9sPbtISQUBN7XrJZCopslDtLtCs= Received: from AS4P189CA0038.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::10) by AM9PR02MB6644.eurprd02.prod.outlook.com (2603:10a6:20b:2cc::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9094.22; Fri, 12 Sep 2025 15:57:15 +0000 Received: from AMS1EPF00000045.eurprd04.prod.outlook.com (2603:10a6:20b:5dd:cafe::2d) by AS4P189CA0038.outlook.office365.com (2603:10a6:20b:5dd::10) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9115.18 via Frontend Transport; Fri, 12 Sep 2025 15:57:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AMS1EPF00000045.mail.protection.outlook.com (10.167.16.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.9115.13 via Frontend Transport; Fri, 12 Sep 2025 15:57:15 +0000 Received: from se-mail02w.axis.com (10.20.40.8) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Fri, 12 Sep 2025 17:57:15 +0200 Received: from se-intmail01x.se.axis.com (10.4.0.28) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Fri, 12 Sep 2025 17:57:15 +0200 Received: from pc56063-2339.se.axis.com (pc56063-2339.se.axis.com [10.92.3.2]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 72F1822E8 for ; Fri, 12 Sep 2025 17:57:15 +0200 (CEST) Received: by pc56063-2339.se.axis.com (Postfix, from userid 14323) id EFEB11200F9; Fri, 12 Sep 2025 17:57:14 +0200 (CEST) From: Peter Kjellerstedt To: Subject: [walnascar][PATCH 3/3] systemd.bbclass: Make systemd_postinst run as intended Date: Fri, 12 Sep 2025 17:57:12 +0200 Message-ID: <20250912155712.3340513-3-pkj@axis.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250912155712.3340513-1-pkj@axis.com> References: <20250912155712.3340513-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS1EPF00000045:EE_|AM9PR02MB6644:EE_ X-MS-Office365-Filtering-Correlation-Id: 17fdfe7a-7c1e-4284-e026-08ddf2150b88 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|376014|36860700013|13003099007; X-Microsoft-Antispam-Message-Info: uwxZ5rm/cAl6HEPMev5lrl1slAOhNuk8b8oDE6WJqT7FUW1p2RN8RiUhrWnP1iyJ7qnWqVlbUzCTWtGPvEXQhxA4jiFlXmWYAlQ+1BF4WyNAMoLx1ouHkc3DpTUajAEm/rlu9xJgyFbHH7iHcQ+lOUa0eCHgeZfStxFdUQdbhMCNEu+uZ9ldEI9R427wLKbxzw34X2jpt2xIxgBunkP8wAojmpHs97DDWQlGY9ih7tUsw2A9lN1mmQ2n2JQPbExhX6QbIWCXcSn3lZIFt/iqGXHwoNvCvb5SPKEEU2qvozluK1cVv1C2e18KSnQfMC34Fbfdl4QqKSkYk9IvtrRQz35cTXhvZQF6wss8bnFFwK3slDVwj6ggMx7qpl5R9udrTmeRXXc1+MlVraqif7vTptTX/Lk+0uKH/UZh4vB9i93Y4rzszUWxFaJf+jLq8nodxrW9yPhFtwyP5ELEq2Wg+/hBXXJKu22uq1atBUE9aVap3sTrWahoVsvtB+wartXKAmhp+GidOMq+ZCBdJCazw/DcLdMZnxDcfWVHFz/1pNNibx4TNiOfT5zSHWH0Z/Xy+3jHCyfekq5M3xPSRF4t9M0Nim14e1HCqRV4girnMeld09VYwwgqvFxhPO6pw3k6dpFDllilLWkvphgILPzbQVQdFrBKzSH/h5LE+5Jnb5Cz6xDii6zIkicprKrVLrPRx4dmvpek5lvIHHX/CSyhxDJpQjRtveK6KHsMRaSKFMmWIEBh81+GnxX4fJ8LBlQSBvAVenKv7lSQ5XpHIpyKGdU1iRF6L1gtBjVei+09yRw71CFKEmsDTFdbnOIo5ctOCWPGhsIzohF4Zh8vr25/x+pCGWg4u4HQOVDegyYUQPpm9tolL5OzsP4xW9OxXOfDNwI7PqpX9R3pmFf4HbnUTGGU9i1Nzyj9DrsLks0p+Ul16SQGJvvj3G/HlvChlMlzYvPoApbmnBYEz+r9POoG5nAZiKE9gmFtFz5TS19N/p8eVPQat7MBA11Ajnt67vYJNu5gOuCHeVntZbQU47B1j4tfh5HpVPScXhHe+RLnzqaJjZLs52Sq8kQY/pRLjMPr5pAOmzETrkrkZYlLv3ZRoXxVVMR29aaSSo8qRsO3So0JvBll6ayDstccuiz3O6/ZdUUtb7AzRZTr/XfgFMkCYvgfeTVeEfPEv9pmhQSnMW+F3WQruGaNxZ3DH1/BYjdRQjzDhIoZf0h4oQtYVE2ayrSSBsDiIPrtrUQpgxVsLZYSOqk2E4t8kh3Va9FDAk/o+2/H4Kd2z2ZHbokWOiQFxjRzw68w220WzedMupRzMv6f/poZAy9MK2IuxUW1jk4dCtI/3PGd0ifm9OwpPYHVxtSCimZDLaBe8/+Axa6MhMU6nqgT/Vj8SnwpOKx/Uhg9fZLpjnjwP0Nguj+IoAnfgugZ2AmCY0+kT46sbj10RknAteS8/2bVujGN1Xv9j+1bDIWHywNH8+xd/0Cyph5a5gTHR9yPxWtFQZMxC+eG8zUN5Vd/KG+109Xviof8IRyY X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013)(13003099007);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2025 15:57:15.7837 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 17fdfe7a-7c1e-4284-e026-08ddf2150b88 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF00000045.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR02MB6644 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 12 Sep 2025 15:57:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223327 After the switch from using a systemctl written in Python to using the official version of systemctl from the systemd project, the systemd_postinst function has effectively not been executed during the rootfs creation. The reason is that systemctl provided by systemctl-native fails if run without arguments (as systemd_postinst does): Failed to connect to system scope bus via local transport: Operation not permitted (consider using --machine=@.host --user to connect to bus of other user) This is not seen in the logs since stderr is sent to /dev/null, and the only way to tell that there is a problem is because systemd services that are expected to be enabled aren't running. The reason this has gone unnoticed is because systemd_handle_machine_id in rootfs-postcommands.bbclass will call systemctl preset-all, which in most cases will create the missing links to enable the systemd services. This change effectively reverts commit a52e66762c0c51918b1ba3d4622759637b6e920a (systemd.bbclass: update command to check systemctl available) and instead only runs systemctl without arguments (to determine that it can communicate with systemd) when executed on target. Signed-off-by: Peter Kjellerstedt --- meta/classes-recipe/systemd.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/classes-recipe/systemd.bbclass b/meta/classes-recipe/systemd.bbclass index 12c59647be..3d8ca24a68 100644 --- a/meta/classes-recipe/systemd.bbclass +++ b/meta/classes-recipe/systemd.bbclass @@ -29,7 +29,7 @@ python __anonymous() { } systemd_postinst() { -if systemctl >/dev/null 2>/dev/null; then +if type systemctl >/dev/null 2>/dev/null; then OPTS="" if [ -n "$D" ]; then @@ -46,7 +46,7 @@ if systemctl >/dev/null 2>/dev/null; then done fi - if [ -z "$D" ]; then + if [ -z "$D" ] && systemctl >/dev/null 2>/dev/null; then # Reload only system service manager # --global for daemon-reload is not supported: https://github.com/systemd/systemd/issues/19284 systemctl daemon-reload @@ -66,8 +66,8 @@ fi } systemd_prerm() { -if systemctl >/dev/null 2>/dev/null; then - if [ -z "$D" ]; then +if type systemctl >/dev/null 2>/dev/null; then + if [ -z "$D" ] && systemctl >/dev/null 2>/dev/null; then if [ -n "${@systemd_filter_services("${SYSTEMD_SERVICE_ESCAPED}", False, d)}" ]; then systemctl stop ${@systemd_filter_services("${SYSTEMD_SERVICE_ESCAPED}", False, d)} systemctl disable ${@systemd_filter_services("${SYSTEMD_SERVICE_ESCAPED}", False, d)}