From patchwork Tue Feb 13 10:00:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SCHNEIDER Johannes X-Patchwork-Id: 39240 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 BCC3FC48BC4 for ; Tue, 13 Feb 2024 10:00:23 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (EUR03-AM7-obe.outbound.protection.outlook.com [40.107.105.86]) by mx.groups.io with SMTP id smtpd.web11.8369.1707818420480780960 for ; Tue, 13 Feb 2024 02:00:20 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@leica-geosystems.com header.s=selector1 header.b=WWObyQhJ; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: leica-geosystems.com, ip: 40.107.105.86, mailfrom: johannes.schneider@leica-geosystems.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NKRs6FqT8JnELhgFRenP+JPbZAMhKYiFLC+RTTjBRLgphcdM0iYuJ0a6sXOiWxCA51Pqk9DLTJbkbR2uopJhJmKoYorPgNj7uuDCRglkcEkKGru5RAVAhpgo/gwxyCzL2qq2gKV248YOR2WovTO0dVKim/3p28bnYgAU25zefbMBiq0pau5FShUVgETiSSNBw+10wcd/19fwrdNlBFmji61xIO6wXBIiIvH6//BBHF3UCoq+fBrLKcFCppT6741Z69K+QtDuoCqkQ/TVcjVqv4pWtNiy1mdJuiJSPJz5h608An2pxPtPqbkoceLGVNjkpJRzwcXSffEv5qDRGwHykw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aHH0Q6FI1riNydWLErJ0+N6m8LyupzT33JOKpIGB1ec=; b=IHK5FO20xgEzjrVdq5pFiC4WoppvXZemkdRR3Ey7uh4E5apRF+HKZFF2tH7kVHjTUrESg93uXMrFrjPZUjoBkuioi99M1aCCLM/o34DDH7aFq1RraY23szLyQ6CDiKGdZ/8ZNWU/+No6WSGGwvXKsD6tIB6nG2hG2D43x+s2RZ+6L0AixfcwhYPneAMeL7Bpz0WcNhje7NtlqyP2CDmNnqKRf9dDb2FR1/PWJBThqNDWe24EVj4rPT5G1goV/Tl0bb1Gk9mWutT/+wjF53lBRjMhYpyVqu0lhD5DUw3MG9Gn68GAJQJi0k/9fubin0kpH2u8L99S6UVN0VfbKSrYww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aHH0Q6FI1riNydWLErJ0+N6m8LyupzT33JOKpIGB1ec=; b=WWObyQhJ8/C496HZxUp4r57TT8WH+yRTMfKx9cEqQtToyYt7k9m9KRaDw4E4oITqFa7/oE5ips4SKOgKuAUj/U4B/xuogKPKU7Hna90KefcfPhKBLfHFx+yqSRQCUpli9ACaRUv/fP4yLtoSvB+MzkJm4V75mmcqGs8sM2aw/dc= Received: from AM6P191CA0076.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8a::17) by DU0PR06MB8549.eurprd06.prod.outlook.com (2603:10a6:10:358::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Tue, 13 Feb 2024 10:00:17 +0000 Received: from AM4PEPF00025F95.EURPRD83.prod.outlook.com (2603:10a6:209:8a:cafe::de) by AM6P191CA0076.outlook.office365.com (2603:10a6:209:8a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.40 via Frontend Transport; Tue, 13 Feb 2024 10:00:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by AM4PEPF00025F95.mail.protection.outlook.com (10.167.16.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.0 via Frontend Transport; Tue, 13 Feb 2024 10:00:17 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Tue, 13 Feb 2024 11:00:15 +0100 From: Johannes Schneider To: openembedded-core@lists.openembedded.org CC: Tim Orling , Tim Orling , Richard Purdie Subject: [PATCH] python3-pyyaml: enable ptest Date: Tue, 13 Feb 2024 11:00:12 +0100 Message-ID: <20240213100012.252237-5-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240213100012.252237-1-johannes.schneider@leica-geosystems.com> References: <20240213100012.252237-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-OriginalArrivalTime: 13 Feb 2024 10:00:15.0301 (UTC) FILETIME=[7117CF50:01DA5E63] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM4PEPF00025F95:EE_|DU0PR06MB8549:EE_ X-MS-Office365-Filtering-Correlation-Id: c9348449-d87a-4c69-7880-08dc2c7a94ad X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MGwixu/kuf5OCFrwJkLyaWbaVayXJsQpSG2dXDnOCCMNGGooggKXmFuJ62mM4tSHCRidvF/BTL/GNMtJK8i0l7EKq3dIZ+n/2h4GJFGxCuQrrXnpqMX7GSg/7HsW7M28O4AAAtOOE+mGgOqEfXW5qRbyWea2iFaaWjEt6VL6Qf1+YDoS1aC0aSNLA1zPYtAQNxzZI5/0cCjKrkcK++Byn2tGGUSayHMShroPYfr2ntPWhRU8/QjCi2Mq9O2HD8jexY+McjgMfxYasjraQwGR+sqs2yqmy4fHSZRv9BIsK2f23FsSxFVaxgyJX//7Fh/I0AS4j4iOoo/ObaRKrDYQvJhv0kp1YQ4tXfu7IYNSXyWZUAJXKHftXbxVOHuZxp8Bc6SgpzUpaFXG+VXwu9oPpXV7cnP3R+KcW6xk8F/AVj5n6ar40dN3bQufn4tUQ0ELJJJKklSiKSoT6wpxa+z583Gxg93q7LNO9n2C5FbM03i6lSoKlgivMpz6ZDU6iXJlyoxFP6BVMP2Y0ZnbpNghPJ/OORYv6ItqlUW5pVuTMDWHj6MvMoZaoc0VMi5nidHoS3Nybf10XRQ1yO6mxWC5xA== X-Forefront-Antispam-Report: CIP:193.8.40.94;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ahersrvdom50.leica-geosystems.com;CAT:NONE;SFS:(13230031)(4636009)(136003)(39860400002)(376002)(346002)(396003)(230922051799003)(64100799003)(186009)(82310400011)(451199024)(1800799012)(36840700001)(46966006)(40470700004)(70206006)(8936002)(41300700001)(44832011)(54906003)(316002)(6916009)(8676002)(4326008)(2906002)(86362001)(107886003)(81166007)(1076003)(26005)(356005)(83380400001)(336012)(6666004)(82740400003)(478600001)(966005)(2616005)(5660300002)(70586007)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2024 10:00:17.1484 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c9348449-d87a-4c69-7880-08dc2c7a94ad X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a;Ip=[193.8.40.94];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00025F95.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR06MB8549 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 ; Tue, 13 Feb 2024 10:00:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/195382 From: Tim Orling Upstream is in the process of migrating testing to pytest, backport test_dump_load.py (the legacy_tests were throwing Errors and Failures). We don't really need to run upstream's test suite, but we do need to verify that our runtime is functional. https://github.com/yaml/pyyaml/commit/a98fd6088e81d7aca571220c966bbfe2ac43c335 Signed-off-by: Tim Orling Signed-off-by: Richard Purdie --- meta/conf/distro/include/ptest-packagelists.inc | 1 + .../python/python3-pyyaml/run-ptest | 3 +++ .../python/python3-pyyaml_6.0.1.bb | 17 +++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-pyyaml/run-ptest diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index b590640edc..0192146dbd 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -69,6 +69,7 @@ PTESTS_FAST = "\ python3-pluggy \ python3-pyasn1 \ python3-pytz \ + python3-pyyaml \ python3-trove-classifiers \ python3-wcwidth \ python3-webcolors \ diff --git a/meta/recipes-devtools/python/python3-pyyaml/run-ptest b/meta/recipes-devtools/python/python3-pyyaml/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta/recipes-devtools/python/python3-pyyaml/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb index 102e2f2498..62be059df5 100644 --- a/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb +++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb @@ -20,4 +20,21 @@ RDEPENDS:${PN} += "\ ${PYTHON_PN}-netclient \ " +inherit ptest +SRC_URI += "\ + https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \ + file://run-ptest \ +" +SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${WORKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/ +} + BBCLASSEXTEND = "native nativesdk" From patchwork Tue Feb 13 10:00:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SCHNEIDER Johannes X-Patchwork-Id: 39241 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 ABADEC4829A for ; Tue, 13 Feb 2024 10:00:23 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (EUR03-AM7-obe.outbound.protection.outlook.com [40.107.105.88]) by mx.groups.io with SMTP id smtpd.web10.8129.1707818421069795543 for ; Tue, 13 Feb 2024 02:00:21 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@leica-geosystems.com header.s=selector1 header.b=t74ko4JP; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: leica-geosystems.com, ip: 40.107.105.88, mailfrom: johannes.schneider@leica-geosystems.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CBbmcoiduw/LGbG8n8F/1/4XWGrg15pbQwPi4ucNEjSSB6kjbituCKqtFEx/FpFNVa9oLVnp4GCDvJoZG6ZW3h1viZIO++AICZwe1Y1Y+L0rosmF0htgguy3f98mPkIyKoG9oGTaqskvIfYSPoA19VIcqSwfQZ/VkwzX6GAkQyktlCZArEQjwlnC0/7/zqCIYrmq2QPzKWmhdnz6zISSS0ja15x/514hJatRJ3ClKpxi8EmIgqXqrc/onbsdB9FOlID37NsXqSMGWDg0R3JBHJng0DDkUM+dck6sgLXJ7/3IxyBy9BLvsY9aATu4dBlDa4Ho0AtwkBd5Vj0xXjH+Ng== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LLTOfccx61q1iafwvokKp1X+hL4pifMCRFA5tOrQavY=; b=fcvKO/n5OLpzfYuX0PoF862eyeGcbQfrrm+m8PFqKkeUqU1DQeBw2u9T62ZwGEEpvLGXkIjCHeEB888gyM/45mLy58ju0qNRhDEOAxlqOY1Lfgso/SBlZMJ4R1QiApiGh436u/T8eQ4i3lGIltKJOyPFx2lzP9z+TV7b+r2n86wo2C/ihuL3ua8xdc2T2escvyHrxfrXUN7rcPKmmsy3+OpgmVlk9uktbHJMZ9t4siwJwre/2Nz8SlEMUsL9TY5sAzRn6/Wbl0CACiucGnnIDBbfToKILp3T91MnV5S0N3620V0w9dbuiit6kLAEt+tIBevZKnYJjz/kJ4nc2svfQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LLTOfccx61q1iafwvokKp1X+hL4pifMCRFA5tOrQavY=; b=t74ko4JPqpuzxItxSHh1kZjEzdB/2O8EEvF6BtWFYrZ3QAwMQheMkKIMXrIXqF6n1bgM5K8blu1uxgy7L/u9QyF/tp76947yHB6jAg4G7edXp285HcbPRfV8xbPOIcwLuVkWr5NqRPwodC+9yQ3b5eU9ZpYyL8maaI3WXsjbrZo= Received: from AM6P191CA0084.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8a::25) by VE1PR06MB7005.eurprd06.prod.outlook.com (2603:10a6:800:1a6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39; Tue, 13 Feb 2024 10:00:16 +0000 Received: from AM4PEPF00025F95.EURPRD83.prod.outlook.com (2603:10a6:209:8a:cafe::2c) by AM6P191CA0084.outlook.office365.com (2603:10a6:209:8a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39 via Frontend Transport; Tue, 13 Feb 2024 10:00:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by AM4PEPF00025F95.mail.protection.outlook.com (10.167.16.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.0 via Frontend Transport; Tue, 13 Feb 2024 10:00:16 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Tue, 13 Feb 2024 11:00:15 +0100 From: Johannes Schneider To: openembedded-core@lists.openembedded.org CC: Johannes Schneider Subject: [PATCH v2 2/3] image.bbclass/rootfs: set&unpack package-database Date: Tue, 13 Feb 2024 11:00:10 +0100 Message-ID: <20240213100012.252237-3-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240213100012.252237-1-johannes.schneider@leica-geosystems.com> References: <20240213100012.252237-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-OriginalArrivalTime: 13 Feb 2024 10:00:15.0222 (UTC) FILETIME=[710BC160:01DA5E63] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM4PEPF00025F95:EE_|VE1PR06MB7005:EE_ X-MS-Office365-Filtering-Correlation-Id: b8844eaf-b969-43f8-428c-08dc2c7a9436 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: plqOoAL7DnNRuvCJFio0WS9Hbk4myV/mz482DcOfhZf8vOsG6GYfg4Np79Mml7ZYX7nKHHCkVjaEFQY1/IwqVSja5psxJCc9vjnDT6B+3LxehJbnFAaJKCrRuiTEVc9PcSFBuPqFP9iNKns28EyXf2k+Y7kmLWbVjmlHCPSVhxhQoPRc5Xn6Myo8EMyR28ves8PINTY6xl61oOFKTWojfYfGf0VNde7P+b2sZDBzdjFdjuXO/OPwMlV3fW/aYv1PpHRDTDOxcC/L8RCPhp5Vf5qTQZygvoMI74iI7eHdB9zsJlAfQ6me40RwAOmTuwaPaaGemNj5h501Yu4WiudIXiiDEHb0G8PiuVl0fs0spFmWB99y630n37AgC+APiE3zd2a5923tttsX+AE9NnejcHIWSdQyqmkt5N8Dong+CkaPeAHYigQaLfBQUjAefaDKxi0NP84+UjrUCAM9Q9FaNdjqmrQ3ad/H3DCtgs3+nP6X2Z0EMiw7BWK2UYHXcbw5M0CcnwotgAvAihfivJnlq5kH45Ly3BVJ2KzRmGb3KLFldUjvMXtJtK2LTd3z7sz0mKlIg0mBl4B+VDgZfdfHqw== X-Forefront-Antispam-Report: CIP:193.8.40.94;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ahersrvdom50.leica-geosystems.com;CAT:NONE;SFS:(13230031)(4636009)(376002)(396003)(136003)(39860400002)(346002)(230922051799003)(64100799003)(186009)(451199024)(82310400011)(1800799012)(36840700001)(46966006)(40470700004)(478600001)(6666004)(1076003)(26005)(336012)(107886003)(2616005)(83380400001)(5660300002)(2906002)(6916009)(8676002)(70586007)(70206006)(8936002)(41300700001)(44832011)(316002)(4326008)(36756003)(82740400003)(356005)(81166007)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2024 10:00:16.3515 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b8844eaf-b969-43f8-428c-08dc2c7a9436 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a;Ip=[193.8.40.94];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00025F95.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR06MB7005 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 ; Tue, 13 Feb 2024 10:00:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/195384 set the package-database of a "lower image" to unpack and build upon when installing packages for the current image. This way a lean image will be created, which only holds the packages that are not already present in the lower image, that then could be used with overlayfs or systemd-sysext to extend the "lower image" on demand; for development purposes on an RO lower image for example. Signed-off-by: Johannes Schneider --- meta/classes-recipe/image.bbclass | 10 +++++++- meta/lib/oe/package_manager/deb/rootfs.py | 2 ++ meta/lib/oe/package_manager/ipk/rootfs.py | 6 +++-- meta/lib/oe/package_manager/rpm/rootfs.py | 7 ++++-- meta/lib/oe/rootfs.py | 29 +++++++++++++++++++++++ 5 files changed, 49 insertions(+), 5 deletions(-) diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index c688c39f15..b4a2460187 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass @@ -42,8 +42,16 @@ IMAGE_FEATURES ?= "" IMAGE_FEATURES[type] = "list" IMAGE_FEATURES[validitems] += "debug-tweaks read-only-rootfs read-only-rootfs-delayed-postinsts stateless-rootfs empty-root-password allow-empty-password allow-root-login serial-autologin-root post-install-logging overlayfs-etc" +# Image layering: +# a "base image" would create a snapshot of the package-database after the +# installation of all packages into the rootfs is done. The next/other image +# "layered on-top" of the former would then import that database and install +# further packages; without reinstalling package dependencies that are already +# installed in the layer below. # Generate snapshot of the package database? IMAGE_GEN_PKGDBFS ?= "0" +# Package-database of the base image, upon which to build up a new image-layer +IMAGE_BASE_PKGDB ?= "" # Generate companion debugfs? IMAGE_GEN_DEBUGFS ?= "0" @@ -134,7 +142,7 @@ def rootfs_variables(d): 'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS', 'IMAGE_LINGUAS_COMPLEMENTARY', 'IMAGE_LOCALES_ARCHIVE', 'MULTILIBRE_ALLOW_REP','MULTILIB_TEMP_ROOTFS','MULTILIB_VARIANTS','MULTILIBS','ALL_MULTILIB_PACKAGE_ARCHS','MULTILIB_GLOBAL_VARIANTS','BAD_RECOMMENDATIONS','NO_RECOMMENDATIONS', 'PACKAGE_ARCHS','PACKAGE_CLASSES','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','USE_DEVFS', - 'CONVERSIONTYPES', 'IMAGE_GEN_PKGDBFS', 'IMAGE_GEN_DEBUGFS', 'ROOTFS_RO_UNNEEDED', 'IMGDEPLOYDIR', 'PACKAGE_EXCLUDE_COMPLEMENTARY', 'REPRODUCIBLE_TIMESTAMP_ROOTFS', + 'CONVERSIONTYPES', 'IMAGE_GEN_PKGDBFS', 'IMAGE_BASE_PKGDB', 'IMAGE_GEN_DEBUGFS', 'ROOTFS_RO_UNNEEDED', 'IMGDEPLOYDIR', 'PACKAGE_EXCLUDE_COMPLEMENTARY', 'REPRODUCIBLE_TIMESTAMP_ROOTFS', 'IMAGE_INSTALL_DEBUGFS'] variables.extend(rootfs_command_variables(d)) variables.extend(variable_depends(d)) diff --git a/meta/lib/oe/package_manager/deb/rootfs.py b/meta/lib/oe/package_manager/deb/rootfs.py index 43107c8663..71a21df09b 100644 --- a/meta/lib/oe/package_manager/deb/rootfs.py +++ b/meta/lib/oe/package_manager/deb/rootfs.py @@ -152,6 +152,8 @@ class PkgRootfs(DpkgOpkgRootfs): execute_pre_post_process(self.d, deb_pre_process_cmds) + self._unpack_pkg_db_rootfs(['/var/lib/dpkg']) + if self.progress_reporter: self.progress_reporter.next_stage() # Don't support incremental, so skip that diff --git a/meta/lib/oe/package_manager/ipk/rootfs.py b/meta/lib/oe/package_manager/ipk/rootfs.py index 64d9bc7969..408faa8030 100644 --- a/meta/lib/oe/package_manager/ipk/rootfs.py +++ b/meta/lib/oe/package_manager/ipk/rootfs.py @@ -276,12 +276,16 @@ class PkgRootfs(DpkgOpkgRootfs): pkgs_to_install = self.manifest.parse_initial_manifest() opkg_pre_process_cmds = self.d.getVar('OPKG_PREPROCESS_COMMANDS') opkg_post_process_cmds = self.d.getVar('OPKG_POSTPROCESS_COMMANDS') + opkg_lib_dir = self.d.getVar('OPKGLIBDIR') + opkg_dir = os.path.join(opkg_lib_dir, 'opkg') # update PM index files self.pm.write_index() execute_pre_post_process(self.d, opkg_pre_process_cmds) + self._unpack_pkg_db_rootfs([opkg_dir]) + if self.progress_reporter: self.progress_reporter.next_stage() # Steps are a bit different in order, skip next @@ -317,8 +321,6 @@ class PkgRootfs(DpkgOpkgRootfs): if self.progress_reporter: self.progress_reporter.next_stage() - opkg_lib_dir = self.d.getVar('OPKGLIBDIR') - opkg_dir = os.path.join(opkg_lib_dir, 'opkg') self._setup_pkg_db_rootfs([opkg_dir]) self._setup_dbg_rootfs([opkg_dir]) diff --git a/meta/lib/oe/package_manager/rpm/rootfs.py b/meta/lib/oe/package_manager/rpm/rootfs.py index 673006c131..9986b13b5f 100644 --- a/meta/lib/oe/package_manager/rpm/rootfs.py +++ b/meta/lib/oe/package_manager/rpm/rootfs.py @@ -67,12 +67,15 @@ class PkgRootfs(Rootfs): pkgs_to_install = self.manifest.parse_initial_manifest() rpm_pre_process_cmds = self.d.getVar('RPM_PREPROCESS_COMMANDS') rpm_post_process_cmds = self.d.getVar('RPM_POSTPROCESS_COMMANDS') + package_paths = ['/etc/rpm', '/etc/rpmrc', '/etc/dnf', '/var/lib/rpm', '/var/cache/dnf', '/var/lib/dnf'] # update PM index files self.pm.write_index() execute_pre_post_process(self.d, rpm_pre_process_cmds) + self._unpack_pkg_db_rootfs(package_paths) + if self.progress_reporter: self.progress_reporter.next_stage() @@ -110,8 +113,8 @@ class PkgRootfs(Rootfs): if self.progress_reporter: self.progress_reporter.next_stage() - self._setup_pkg_db_rootfs(['/etc/rpm', '/etc/rpmrc', '/etc/dnf', '/var/lib/rpm', '/var/cache/dnf', '/var/lib/dnf']) - self._setup_dbg_rootfs(['/etc/rpm', '/etc/rpmrc', '/etc/dnf', '/var/lib/rpm', '/var/cache/dnf', '/var/lib/dnf']) + self._setup_pkg_db_rootfs(package_paths) + self._setup_dbg_rootfs(package_paths) execute_pre_post_process(self.d, rpm_post_process_cmds) diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 9268a02531..7ca574e6b1 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -106,6 +106,35 @@ class Rootfs(object, metaclass=ABCMeta): def _cleanup(self): pass + def _unpack_pkg_db_rootfs(self, package_paths): + import tarfile + gen_pkg_db_fs = self.d.getVar('IMAGE_BASE_PKGDB') or '' + if gen_pkg_db_fs == '': + return + + fname = self.d.getVar('DEPLOY_DIR_IMAGE') + '/' + self.d.getVar('IMAGE_BASE_PKGDB') + '-pkgdb.tar.gz' + if not fname: + bb.warn("PKGDB does not exit:", fname) + return + + bb.note(" unpacking package database...") + bb.utils.mkdirhier(self.image_rootfs + '-pkgdb') + if fname.endswith("tar.gz"): + tar = tarfile.open(fname, "r:gz") + tar.extractall(path=self.image_rootfs + '-pkgdb') + tar.close() + + bb.note(" Copying back package database...") + for path in package_paths: + try: + bb.utils.mkdirhier(self.image_rootfs + os.path.dirname(path)) + except: + pass + if os.path.isdir(self.image_rootfs + '-pkgdb' + path): + shutil.copytree(self.image_rootfs + '-pkgdb' + path, self.image_rootfs + path, symlinks=True, dirs_exist_ok=True) + elif os.path.isfile(self.image_rootfs + '-pkgdb' + path): + shutil.copyfile(self.image_rootfs + '-pkgdb' + path, self.image_rootfs + path) + def _setup_pkg_db_rootfs(self, package_paths): gen_pkg_db_fs = self.d.getVar('IMAGE_GEN_PKGDBFS') or '0' if gen_pkg_db_fs != '1': From patchwork Tue Feb 13 10:00:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SCHNEIDER Johannes X-Patchwork-Id: 39242 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 C9B6DC48BEC for ; Tue, 13 Feb 2024 10:00:23 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.46]) by mx.groups.io with SMTP id smtpd.web10.8127.1707818419843695589 for ; Tue, 13 Feb 2024 02:00:20 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@leica-geosystems.com header.s=selector1 header.b=S4D4UawS; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: leica-geosystems.com, ip: 40.107.20.46, mailfrom: johannes.schneider@leica-geosystems.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fC/ogHjtkuG/gkCSfL3W6cVHuFfpCh10Uscy8IxRulBu/Uc504VnmFDDJYdWV0tyku8MGE6CcFwtjrlkVoc1DseoX/Ife/kjjSXSM6Lb6zlcm0yeQqrPO4Ib3ktZfZYmKYB/llTY2bpaG18aj4vPCT32DDM3bvVrcBSALkSC68C9MjaYHQx/9X+6jG+Rfh1hHSO0Ncd22h0j1MOYQA3aqIkXjXz2qccxJ54Br/v9FhhiwI+U+2P+8g305VDniok0ZZVnW/N4g4zewde5igp3J77UbeHP10J+XyDu245F9Guth76yt0nd7q1jSPzZv7N8v5PUHyz2MSp/c4bGBHCq8Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VT/bLJqgmzWv6IKJfMdQ7qXWSVAqP3YMv5nVxTLSqjg=; b=OM3O/k9lAYkPVp4pkEVZICkj/Rv0dUvFKPioAosqK9LzaDa3hGqR+AsbeGuaNEa/wNClo0bgy/SEOjzHyrgiDxgPEpqbRWWF5Fa2/OoEXAwKZdgSNKmqzjF4ouO2gb/eYNYkd13vVpfmQVtSarTQ5QfehmRut83XCwr0R7qG1XZaAgnlw6L3wZNKV45uAla2sE3REsgMEISmdS1ehl1XC87K+4pjM0nG0lgfq0ftEMN/Frw8brWmIsU+hFkuJU3shLz1+0MBVNbU1FiUx9tBfTU+Sy3bvbXQ/vMPXb3pPMe3GLrj83OC9sYb89KGUtJRPcWKMMBue1TARBx47RiKcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VT/bLJqgmzWv6IKJfMdQ7qXWSVAqP3YMv5nVxTLSqjg=; b=S4D4UawSqlLoh0hDLsww/hpbaqgSh4j4VindNIUC6go6P2q0Vq8oqBPq3E0lagP0lh2fGztIFj7AMiI59ilBuvlGOtlMOoCfg8WRL1uPt5WEPrtELkg6QdZzcyeVPx7u5xYT8l5tRmoBbampgxjN5YPApT7TImiYrSAJ4zCXRns= Received: from AM6P191CA0080.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8a::21) by VI1PR06MB8686.eurprd06.prod.outlook.com (2603:10a6:800:1df::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39; Tue, 13 Feb 2024 10:00:16 +0000 Received: from AM4PEPF00025F95.EURPRD83.prod.outlook.com (2603:10a6:209:8a:cafe::98) by AM6P191CA0080.outlook.office365.com (2603:10a6:209:8a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39 via Frontend Transport; Tue, 13 Feb 2024 10:00:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by AM4PEPF00025F95.mail.protection.outlook.com (10.167.16.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.0 via Frontend Transport; Tue, 13 Feb 2024 10:00:16 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Tue, 13 Feb 2024 11:00:15 +0100 From: Johannes Schneider To: openembedded-core@lists.openembedded.org CC: Johannes Schneider Subject: [PATCH v2 3/3] classes: add a systemd-sysext image class Date: Tue, 13 Feb 2024 11:00:11 +0100 Message-ID: <20240213100012.252237-4-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240213100012.252237-1-johannes.schneider@leica-geosystems.com> References: <20240213100012.252237-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-OriginalArrivalTime: 13 Feb 2024 10:00:15.0269 (UTC) FILETIME=[7112ED50:01DA5E63] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM4PEPF00025F95:EE_|VI1PR06MB8686:EE_ X-MS-Office365-Filtering-Correlation-Id: 50be0c24-53fb-4158-04a6-08dc2c7a9479 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HEhksjmRdw/E4qe7XSL7WAij1LGvgSKvTgeBD0qVzQ0cdHag+XjQpCk4eg86P6ljf555+xEXzTH6T+aDBfgWQPw0fI1RUDXFfeRdyVeLyKx7OEQUnxyPyWfb4gNhD+/goDwSA/CvDxfuZZBdvZDKhQE6S2w3IpDgko17fmzLbfNne9puT/J1QQLy9JQ802kQRglPx1FtLkT1JHpRSLZDQuQdrJdtMMh0pixcZzxIcBEfzCGDhudS5LyZBFyyDs529bnXUQK+YjGrtg0FCMRdf8RKs22uvOakmxMp3kmk0L3PnRHbTtOWMdoIFeuaVqrjwUJj9SRncbBBf1A+1pdx4tAIyprh2w03606AYJtBD6txfopkD/NQREanuBjvqqPLCWwbOfjYk2xU/znOtc/P2/GKTAxQRPmVMoY415hwAPrzpMtmpvdPQTcekOTIQURvZFy8DQOFcJLuv4wZZhnoMt68VUNfBwllud5wf8hwfxAPKCcxC3/mWy1qIOXV/4XpLTNua+2RGsDrhUkehqWW7bol7FDy+76rUDYPOLQf7aXeTGoEYCVpHQRH4HNypRyGdlb3kzZWY0bEsLsEKEDKHQ== X-Forefront-Antispam-Report: CIP:193.8.40.94;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ahersrvdom50.leica-geosystems.com;CAT:NONE;SFS:(13230031)(4636009)(346002)(136003)(376002)(39860400002)(396003)(230922051799003)(186009)(82310400011)(64100799003)(451199024)(1800799012)(40470700004)(46966006)(36840700001)(86362001)(82740400003)(36756003)(356005)(81166007)(966005)(316002)(478600001)(6666004)(107886003)(26005)(83380400001)(2616005)(41300700001)(1076003)(336012)(4326008)(2906002)(6916009)(44832011)(8936002)(8676002)(70586007)(5660300002)(70206006);DIR:OUT;SFP:1101; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2024 10:00:16.8046 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50be0c24-53fb-4158-04a6-08dc2c7a9479 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a;Ip=[193.8.40.94];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00025F95.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB8686 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 ; Tue, 13 Feb 2024 10:00:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/195381 systemd-sysext can load a raw-image containing usr/ and opt/ folders to mount them as RO overlay over the rootfs, to "extend" the systems. This class provides the necessary changes/additions to the enclosed file-system so that systemd-sysext accepts the extension for "merge" into the rootfs. With such an created image, placed into the correct folder (see [1]), `systemd-sysext list` should be able to list the "extension" and `systemd-sysext merge` should enable the overlay. On both commands a preceding "SYSTEMD_LOG_LEVEL=debug" can aide in figuring out what is amiss. The strict name checking systemd-sysext does against the name of extension-release.NAME file, is disabled, as there is only one such in the resulting image. This is done to allow a user to freely rename the resulting image file. Note that for e.g. squashfs, the kernel needs CONFIG_SQUASHFS_XATTR=y Link: https://www.freedesktop.org/software/systemd/man/latest/systemd-sysext.html Link: https://0pointer.net/blog/testing-my-system-code-in-usr-without-modifying-usr.html Signed-off-by: Johannes Schneider --- meta/classes-recipe/image-sysext.bbclass | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 meta/classes-recipe/image-sysext.bbclass diff --git a/meta/classes-recipe/image-sysext.bbclass b/meta/classes-recipe/image-sysext.bbclass new file mode 100644 index 0000000000..012db83353 --- /dev/null +++ b/meta/classes-recipe/image-sysext.bbclass @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: MIT +# +# Copyright Leica Geosystems AG +# + +# systemd-sysext [1] has a simple mechanism for version compatibility: +# the extension to be loaded has to contain a +# /usr/lib/extension-release.d/extension-release.NAME +# with "NAME" *exactly* matching the filename of the extensions +# raw-device filename/ +# +# from the extension-release file the "ID" and "VERSION_ID" fields are +# matched against the etc/os-release and the extension is only "merged" +# if no mismatches between NAME, ID, and VERSION_ID. +# +# Link: https://www.freedesktop.org/software/systemd/man/latest/systemd-sysext.html + +inherit image + +IMAGE_NAME_SUFFIX = ".sysext" +EXTENSION_NAME = "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${IMAGE_FSTYPES}" + +DEPENDS += " os-release" + +sysext_image_mangle_rootfs() { + R=${IMAGE_ROOTFS} + + # pull a copy of the rootfs version information, which systemd-sysext matches against + cp -av ${RECIPE_SYSROOT}/${nonarch_libdir}/os-release ${WORKDIR}/extension-release.base + + echo 'EXTENSION_RELOAD_MANAGER=1' >> ${WORKDIR}/extension-release.base + + install -d $R${nonarch_libdir}/extension-release.d + install -m 0644 ${WORKDIR}/extension-release.base \ + $R${nonarch_libdir}/extension-release.d/extension-release.${EXTENSION_NAME} + + # disable systemd-sysext's strict name checking, so that the image file can be renamed, while still being 'merge'-able + setfattr -n user.extension-release.strict -v false \ + $R${nonarch_libdir}/extension-release.d/extension-release.${EXTENSION_NAME} +} + +ROOTFS_POSTPROCESS_COMMAND += " sysext_image_mangle_rootfs; "