From patchwork Sat Dec 5 08:03:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Schneider X-Patchwork-Id: 107504 Received: from OSPPR02CU001.outbound.protection.outlook.com (OSPPR02CU001.outbound.protection.outlook.com [40.107.159.47]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2562.1796457822552510859 for ; Sat, 05 Dec 2026 00:03:43 -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=KFo3SPkW; 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.159.47, mailfrom: johannes.schneider@leica-geosystems.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rcrUdrNSmqsb7v8r5sOdTM/pfmY69hZyqHYmUntqopjGAelFjUsERQMkAFdWf1aGXVVvWremMx3bPF3sLVFex3h5RqgfPUrCZP2GXIksKFCfsV3bdIuuta8T+mKNWIGwUO98Vp5+3/j08jzGtR6w+1uDA27JCTBw3s7HgMXjz0T8aT4VpWTU+bqAhFhSk/W4cHlNuv7EzwK1HyVie/MXrOQSPqwTonOH6gYsQowdE3ODAjs65nUEKYqdYseaiEMiB+cXqdyDozvX2nZACjc3oj/mkEdJhn/3PMhknS9zrZRnaILkbu9TFxwOkycVUTYOeozXO9jLJ1UVFnas770Rww== 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=r771fmBKMhiosvGLWf7wA93+JJsrzFosXofY/CuCVGc=; b=OB2Ce1YbMu7Y51Xd+ECwY1jT4nyvM7NfNO1gwZC7t7/dBexWmQ7BBTL+iQlDqHUkOzv6tKYMIdMoIYQ4fd5pZoaSKq+ZqCVe32fsr5DZuQtO78w4a27wEA1e0UrRKXZCA7jt0Zq1q9PGabGTR8cHsmnPjbCvKzosws6HqS6K7KXJIRSnzNIPL8MopgTA/UZSxYXkLOaQ4AhWk/Mu9szig8nXcNbJP7MXdmdaQ0O8u/TK2TuoLiKzFCvob2C1DeKU070XL+TbYPMWnqboZy/Q2SwIYdDym8R1+v8LuZQthF/FM010S+Ln7qWojliFVF+xb9sqtMIK2Nd7ygGEAThDEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.99) 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=r771fmBKMhiosvGLWf7wA93+JJsrzFosXofY/CuCVGc=; b=KFo3SPkWUAMHg1tkcF/qHySQr7Dosy0OWtbkGW+gd7R+h7LBDkBC1JVLGYttRBetUjl47CV9vEAqTcybAy7xEfa2pFaP+wQmAQZqV0nCGR1B3CeSmEimJHHahM60miSpulSsRCxyivSU0tHICJKWnHbbdmlAZ6Yc2we8Sqc7Q/8= Received: from CPAP307CA0006.DNKP307.PROD.OUTLOOK.COM (2603:10a6:380:3::14) by PA2PR06MB9293.eurprd06.prod.outlook.com (2603:10a6:102:401::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.13; Sat, 5 Dec 2026 08:03:31 +0000 Received: from CPH1EPF00000519.eurprd04.prod.outlook.com (2603:10a6:380:3:cafe::64) by CPAP307CA0006.outlook.office365.com (2603:10a6:380:3::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.13 via Frontend Transport; Sat, 5 Dec 2026 08:03:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.99) 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.99 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.99; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.99) by CPH1EPF00000519.mail.protection.outlook.com (10.167.241.228) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Sat, 5 Dec 2026 08:03:29 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.61.228.61]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Sat, 5 Dec 2026 09:03:29 +0100 From: Johannes Schneider To: openembedded-devel@lists.openembedded.org CC: Anuj Mittal , Johannes Schneider , Roman Nazarenko , Khem Raj Subject: [meta-oe][wrynose][PATCH 1/2] discoverable-disk-image: drop do_unpack deptask Date: Sat, 5 Dec 2026 08:03:28 +0000 Message-ID: <20261205080329.1886963-1-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Return-Path: johannes.schneider@leica-geosystems.com X-OriginalArrivalTime: 05 Dec 2026 08:03:29.0566 (UTC) FILETIME=[1D2CFBE0:01DD848F] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CPH1EPF00000519:EE_|PA2PR06MB9293:EE_ X-MS-Office365-Filtering-Correlation-Id: fc77daee-9630-4cb5-3342-08df52a63fde X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|82310400026|1800799024|23010399003|376014|18002099003|6133799003|56012099006|11063799006|261009223027099003|10067099003|261102123227099003|261026121527099003|261022075727099003|261022115727099003|261021121427099003|261021123027099003; X-Microsoft-Antispam-Message-Info: 7VZj0jotrTLb/63r6Zd3KA9z1OgEk7xROKz8XFf0xeX8/GngWAbG/w3FTe/dD6nP3x5e1W0lGQ5eBVfJIVoJY5yHS0tvymbrSuscSEq90zTqfPJE+tEJjE9tNMaJRH7RU5hYzDUkRa9g1pdmBNDGkY+7K7iWGq4MBEE/i3DhjjokE60CCEW/BpIl/AQNspjDJqqO++dX3GK87+se+6cFzYygRmpUPBeBJj8cF6K9TP8Z2eHmEaQbxyGckaRw1vfZshNNMqOAMP2FzEI4zZrY9DB4LU8LJDYQE4x4XCmrkcXGJvaZWamoHm+86tOWptE44QXHzK9LtCR2EutDIXzxjvjKjDed+O4SvrITDqMf40Omqg4mKjrPLMN/A6Kj3xEJhTLcKrA+95jxy00vvxUSMM2LfEcVjZIVurksRsUqh/K5wj6465Mw7JGmJwWTRPq1qUcI1d/CX1Mrv/EHKIY+toeiTJxIGmdOMOzl06nGKN4AxK21tVkxd1vsRLp22vGqqfqx4kRi+Qa9bMJCWlBVvwBb7A8b6E2aWQ5xjYs1h4RiIQDUp6JRPWjZ08ms/EdLMo3oHujRcpWibt44Y82AD3/2ll2rltKrDEuwskpwAxEn/ELkhCZ2j7whfr9D2Zs1x797BaykM6yl6a+ltBA5BX4Hb+HPQhfXJQ2Fb3qM8BO3aq7VByq9/og4LBtZIYYED0PI3o7bEL8TY+uIXMWbjw== X-Forefront-Antispam-Report: CIP:193.8.40.99;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(36860700016)(82310400026)(1800799024)(23010399003)(376014)(18002099003)(6133799003)(56012099006)(11063799006)(261009223027099003)(10067099003)(261102123227099003)(261026121527099003)(261022075727099003)(261022115727099003)(261021121427099003)(261021123027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8K7JHQ5eAASCajSDdelCMzs5nnbhy0vcxdKIbOiAIexwFT0mE4dagDLrgW2EBhejbX7DQhk0myxyH7x2ru5pXHZ2B6P6wWkGCzPFeGjBE30JFzxo5wbO+SrFrz8bOgiXs7qlC8zBLyFhLKYsvbUC1BR1jkZYHXRlz+9dOVRU+CGKZFuZICoiDyj1+tSeGa1Zeztwqkx78KS5LNUpVWRXh0r5UM7o7dQ7TSj4cxB5LqTDrvfoWl/07R3w3JGCoqEkbZd2ywHdbQyHLeFqJzajANwIr2ksHcWC64rDbYgiC8sD3P+M6k5lc7WwDZ1sKPe9lRhNTKbalMp5HIPXqGBhlPOLqPBVUb/aQwJZLb9zqwdTleJPbCjDcqYx2J8yQ9Mzs30P5KESdrkNX3XGw5ooNppUwXoiYJZUgUN8ES5YcH2M4NXL9tSsq/FdIMp8uNWU X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2026 08:03:29.9039 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc77daee-9630-4cb5-3342-08df52a63fde 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.99];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: CPH1EPF00000519.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR06MB9293 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sat, 05 Dec 2026 08:03:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/134109 do_image_ddi depends on do_unpack of every recipe in DEPENDS. do_unpack has no setscene task, so whenever do_image_ddi runs, do_fetch and do_unpack are executed for all of them, even if everything else comes from sstate. The sources are not used: the DDI is built from IMAGE_ROOTFS, and systemd-repart, erofs-utils and openssl come from the native sysroot, which do_prepare_recipe_sysroot already populates through DEPENDS. Suggested-by: Roman Nazarenko Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Johannes Schneider Signed-off-by: Khem Raj (cherry picked from commit d3d340b5c1989a6b589eba4ac309e81270a71734) --- Backport for wrynose: without it, every do_image_ddi run fetches and unpacks all of the image's DEPENDS, even when everything else comes from sstate. Cherry-picks cleanly. meta-oe/classes/discoverable-disk-image.bbclass | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-oe/classes/discoverable-disk-image.bbclass b/meta-oe/classes/discoverable-disk-image.bbclass index 1f3a7b08e1..02ad900d0f 100644 --- a/meta-oe/classes/discoverable-disk-image.bbclass +++ b/meta-oe/classes/discoverable-disk-image.bbclass @@ -134,4 +134,3 @@ oe_image_systemd_repart_make_ddi() { } IMAGE_CMD:ddi = "oe_image_systemd_repart_make_ddi" -do_image_ddi[deptask] += "do_unpack" From patchwork Sat Dec 5 08:03:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Schneider X-Patchwork-Id: 107503 Received: from OSPPR02CU001.outbound.protection.outlook.com (OSPPR02CU001.outbound.protection.outlook.com [40.107.159.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2550.1796457822617806564 for ; Sat, 05 Dec 2026 00:03:43 -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=O1+QVmml; 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.159.44, mailfrom: johannes.schneider@leica-geosystems.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EDWVRQHzOqbyR3Mu2FMgszT6Pq2yCWmrZsTMuH6zT3+Q0D6uREgTHJmjcunemP+364Yp4M89VorFYJ1GKEx4WQaFfTPFiPCKbbCEDXTRrwmKdqnhmJPbazo5VzjvP3r4YNPDpW/erfgOfzRNXpaCwzI6nrbEapUU1zYyaF2mgkVm7XTVXT053RfWwnOW25bRv6ruWOoMIscH/tZPp7reSraBuYOCT03oGK9BY+suB2flOoXhkNI0VDFeFWkwCPCGybR8TOMIqUTkd4EdcIvUwReEPKOsEVh+cuIwNZd160NH06PkjLBNmkVzw0Qr51yP69x4PAw9WQWA6bJX2FSU3w== 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=3oVCnyDc+34mHnny89Id8ALLq0bmaWZOZow04k5CYTU=; b=gRS8kp+c6RvR5OFfJIOR9IkZdVc3QM+z7c2aqarnZ4Z//GCvL43qoglEqBYfPaQJ3muQi8+hYUao4oypxmpLQ7FmkLREGpcPAyTrOtcNuzMYkizZdV8buYUQRXEruFQjv09AYEeuy746yOfuL5vnPFSvGSe66/ZRP1pOzHZDaeLqyYAXLATrWV1+6W/IE0Rek7iyTokTwPRD3rZ+PvrMF0UlnYiwKfX9+kjEVd0HcCEHxEj+7/v/1g0DVgXWg303AYN0sQVftnxxyN6zGDH0znRBDVEx6uaQ1IFSOmWvZtUKqN1OuwTy16TDxP3JixoxuxoPyv/ZzWkgHbXY3XPaJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.99) 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=3oVCnyDc+34mHnny89Id8ALLq0bmaWZOZow04k5CYTU=; b=O1+QVmmlk5xR5z4wqKkbEtlaqgBbSosraV7gjIhJ6VMJ/7GwDevk3/CI5hoaVTiQxqZxFBsOUCJbTZPc5ddxvQesuNdBeWJQ3RcPsSQvXwxf6oZiuZE1QCPjLSF9s4saWolOEKeY3GLkbFZSFP8wmm8Y8wHigyIgS3g6+kAoRH0= Received: from CPAP307CA0012.DNKP307.PROD.OUTLOOK.COM (2603:10a6:380:3::11) by AM7PR06MB6440.eurprd06.prod.outlook.com (2603:10a6:20b:119::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.13; Sat, 5 Dec 2026 08:03:37 +0000 Received: from CPH1EPF00000519.eurprd04.prod.outlook.com (2603:10a6:380:3:cafe::4f) by CPAP307CA0012.outlook.office365.com (2603:10a6:380:3::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.13 via Frontend Transport; Sat, 5 Dec 2026 08:03:37 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 193.8.40.99) 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.99 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.99; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.99) by CPH1EPF00000519.mail.protection.outlook.com (10.167.241.228) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Sat, 5 Dec 2026 08:03:36 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.61.228.61]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Sat, 5 Dec 2026 09:03:29 +0100 From: Johannes Schneider To: openembedded-devel@lists.openembedded.org CC: Anuj Mittal , Johannes Schneider , Khem Raj Subject: [meta-oe][wrynose][PATCH 2/2] discoverable-disk-image: stage systemd-repart below WORKDIR Date: Sat, 5 Dec 2026 08:03:29 +0000 Message-ID: <20261205080329.1886963-2-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261205080329.1886963-1-johannes.schneider@leica-geosystems.com> References: <20261205080329.1886963-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 Return-Path: johannes.schneider@leica-geosystems.com X-OriginalArrivalTime: 05 Dec 2026 08:03:29.0581 (UTC) FILETIME=[1D2F45D0:01DD848F] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CPH1EPF00000519:EE_|AM7PR06MB6440:EE_ X-MS-Office365-Filtering-Correlation-Id: d0f63638-4ca5-4c8e-4aee-08df52a643d1 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|376014|82310400026|18002099003|22082099003|10067099003|56012099006|261026121527099003|261026140227099003|261028144727099003|261022115727099003|261022105027099003|261022075727099003|261021123027099003|261021121427099003|261102130727099003|261102123227099003|261009223027099003|11063799006; X-Microsoft-Antispam-Message-Info: zfmPpUeIuHUYeJCxWFc8XRt8ux5lE/lZpgEojv0aMDN9at5owTrFtzJWWB3f36C1ZD6YQTy5b/IGxobJuAhHqxpDZNe+XSYXtzuk/FXREsRsp2tTkqwKXK6I26puzVBsGC27qDjL1uCfqp/vkcNEfauVXYZDrU2JN+PPLlASz9+reF6wAdbPD74/0Nf/8gl505jH8MQWQn/K+xvGowPLFLRqEjYDwpKDk3gGkff89XPSbS4fAJgGKN07lSPnWthRRE9POvy2TeGEtULR4vjubdNx1euql4QG2MUys3NqM8A01rGP0xwvfwjQn/hkcWi+RNuj/Qrt1LS+tSnPzy5dU6AlBwjp0Rt1BAOk6Bo2DdFFE1l2Fnl0Nyh1fe5HIQasnUYIqyu53n3Yq3N6LkGQcOgKn54JQrG+/fZ+Jr3TatReEl54BTXsOTMMeAPQO7SmV4yrN6hslc5uzAHjWvUBLS+/YEt5pPlbfimNLuM6XMR9yHry3pPWf7vPTfg/hhR1/jORrUyV3fHsVqdmvIeNkDlPDaTZ2hzoH/hGPkYjUyUzaNQtXbf+YMhdV15feIwcZmh267jrvjF6OZ6KPtHZ1fo8A8iNIut+mV9aJNzNUWl5mMS+mrfssufcf7fkxfz2OV2zEd1GzwEBwiRsrsaaEYTC+ZF/afgyrnSPH8O0K+4TUVzAjSRwKF+bqRLKk+ttnFqdp+9dQy5uZrfdhZ+klQ== X-Forefront-Antispam-Report: CIP:193.8.40.99;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ahersrvdom51.leica-geosystems.com;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(376014)(82310400026)(18002099003)(22082099003)(10067099003)(56012099006)(261026121527099003)(261026140227099003)(261028144727099003)(261022115727099003)(261022105027099003)(261022075727099003)(261021123027099003)(261021121427099003)(261102130727099003)(261102123227099003)(261009223027099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q0TY06HYR3ESo6JLwwjW4l5s2kJqY/6a4r3lMKWsFDpfUFN+2bpXS4EPLYrRzDiqu7OMygHXBrDdCz4XIrUNx5URD7Jx+8b4rTiQhRr4zht35gYjsl48ZTuYzSlF2WglybtxdfKQcjT+jgf59uvbSeNGBa7X/U95/04deUCx8JP8cx4fqq45dcpnBlbi12FEQOn3BwY8tWYBPRweCzAD4disbLVSe+RppYddWmH5pIoIHfKuORYcdKayskBFtM93blmVtWtcdRtDip0J2DWDGNhSmt5yNct4EDMnYp1RnnrgFGXSEPTUEFlnIWORF9rtUSApbLbmZFS8HreLow/Ez6IBn016jT0AGIMJdSw0Qg2aFmsYJ+PL3EpDCAO/G7l78bDjZsGRowgpELJSXwuXyzF4hOmTfyQrkzLO8zaPdn9YYGOhVjX6QqP3EZCBP0qI X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2026 08:03:36.5336 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d0f63638-4ca5-4c8e-4aee-08df52a643d1 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.99];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: CPH1EPF00000519.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR06MB6440 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sat, 05 Dec 2026 08:03:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/134108 systemd-repart copies the rootfs into a temporary directory from var_tmp_dir() to populate the filesystems. With $TMPDIR, $TEMP and $TMP unset in the task, that is the host's /var/tmp, which the class adds to PSEUDO_INCLUDE_PATHS for the faked ownership to apply there. pseudo then tracks a host-wide directory shared by all builds and users, and an interrupted run can leave its staging tree outside the build directory. Stage into ${WORKDIR}/repart-tmp instead, recreated on every run, and cover only that with pseudo. The location is passed through $TMP rather than $TMPDIR, because pseudo derives its own runtime paths from $TMPDIR. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Johannes Schneider Signed-off-by: Khem Raj (cherry picked from commit 15a584c0938ff426f859a9d495adca36a6808916) --- Backport for wrynose: keeps the systemd-repart staging and pseudo's coverage inside the build directory instead of the host's /var/tmp. Independent of 1/2; cherry-picks cleanly. meta-oe/classes/discoverable-disk-image.bbclass | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/meta-oe/classes/discoverable-disk-image.bbclass b/meta-oe/classes/discoverable-disk-image.bbclass index 02ad900d0f..604f316d5f 100644 --- a/meta-oe/classes/discoverable-disk-image.bbclass +++ b/meta-oe/classes/discoverable-disk-image.bbclass @@ -77,17 +77,19 @@ REPART_DDI_TYPE ?= "sysext" REPART_DDI_EXTENSION ?= "ddi" -# systemd-repart creates temporary directoryies under /var/tmp/.#repartXXXXXXX/, -# to estimate partition size etc. Since files are copied there from the image/rootfs -# folder - which are owned by pseudo-root - this temporary location has to be -# added to the directories handled by pseudo; otherwise calls to e.g. -# fchown(0,0) inside systemd git/src/shared/copy.c end up failing. -PSEUDO_INCLUDE_PATHS .= ",/var/tmp/" +# systemd-repart stages copies of the rootfs here; pseudo has to cover it +REPART_WORKDIR = "${WORKDIR}/repart-tmp" +PSEUDO_INCLUDE_PATHS .= ",${REPART_WORKDIR}" oe_image_systemd_repart_make_ddi() { local additional_args="" + # $TMP, not $TMPDIR: pseudo derives its own runtime paths from $TMPDIR + rm -rf "${REPART_WORKDIR}" + mkdir -p "${REPART_WORKDIR}" + export TMP="${REPART_WORKDIR}" + if [ -n "${REPART_PRIVATE_KEY}" ] then if [ -n "${REPART_PRIVATE_KEY_SOURCE}" ]