From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 11 Nov 2026 15:39:42 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f59.google.com (mail-pj1-f59.google.com [209.85.216.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 6ABEdcdX006153 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 11 Nov 2026 15:39:39 +0100 Received: by mail-pj1-f59.google.com with SMTP id 98e67ed59e1d1-3b08aee6b3esf2840695a91.3 for ; Wed, 11 Nov 2026 06:39:39 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1794407973; cv=pass; d=google.com; s=arc-20260327; b=YZg0vM6qf8l5Hd6A9tVsgZDBUmmFjq0Mi2cfC91OLJEh5jJ0ETcPjNuXwfme8Cz8jr LIHnmXh0cxn/0H5PdCDqP25APGmKEmdFMMfcTzf7Nwp2tVzO2FWO7EbklnV3WkFy+QxZ dgQz1h7l8EBW/qV7wjA8OH8hTZpGHmTea7zhb8vw5x2oe24KK3doEui8+1vJoBWaB3ED U1mQ960RKQTobmTZ0hvxnh5Ki3eevGk2XIkHrY+AwhStjNntQ8zdy+VByhiuBv1HyeFS GBH7EIJLwyN1h76Wf2Dm9jgVBgu4UvChUMszSCaVWi3NN8ZDQ/KTm6e1q5OJrdN0JTXb yOmQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:in-reply-to :content-language:references:to:subject:from:user-agent:date :message-id:dkim-signature; bh=L6QhTLBQ32trohS3YKEvZKz0Kdif+gfhCf+0MMoIres=; fh=kREg/Qm/WF3JM3dyvBDAei21+CBzbRqkHTweXTJB+04=; b=LUvutGFRPH+cFUveiRt5T8knBUqOrHQbhW1U8U/P1NvtjgYlxpUlvNU69HgANfOw6D z77INbHZHQPiHLa+NTJLBzMnIgCzXzkJUjXeiO2p3dYuBI7TUPy5D3JMGxZoV8gYAvLH JLN8Rd4eEHV3YXWYwZBmXA31fHUu72VSaP9zSAZugknnQKugN60gcmOnJCqtRsNPzvtC ryh+oHaGDop71EbDV+fn1Cv8YNagF2AE96YnmyqNd+gybJPHURLA+lgpILNg+m1N74IN KG8ATNYBZ4ClB9g3iys32AdaY4a2y0X0ggkEGV8KWjHZdFlT0LDF1Y9NjhTaC9GI69UV aQfQ==; darn=ilbers.de ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="S/Ts64wG"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of clara.kowalsky@siemens.com designates 2a01:111:f403:c20a::7 as permitted sender) smtp.mailfrom=clara.kowalsky@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20260707; t=1794407973; x=1795012773; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-type:in-reply-to:content-language:references:to:subject :from:user-agent:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=L6QhTLBQ32trohS3YKEvZKz0Kdif+gfhCf+0MMoIres=; b=dDF5xDYPK/KbMBglPNfneBAyxCd4VbRKtOWdSsDpEQsD6cjDZnO18c3NKcUMCPOB0c IqYO4lrio6dKZ34qNEEtMYhBayzwArmlJJUhZCpa1VBsdGMtiVejEU5PLJnfalRQjLrJ 2pwtoU3X+UdcZH039hB341E5qNkQRKqPn4xHEuYPC5Kw0LMhiY6Y2ih9AKBMp2mAVkpW 1VqNFZTEV+Ob0d9cyjiv+kxbqO4K2K7lRvYgVyv7jPwlx2/aBBE49h821ay5Ogw8T0pB aREebatreZ4tmVOFkz0yl+tLbzG4b9UN+vZs6VzYDcoRpsklewjKHzb2loyuwFTHrAnz Gkiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794407973; x=1795012773; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-type:in-reply-to:content-language:references:to:subject :from:user-agent:date:message-id:x-beenthere:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=L6QhTLBQ32trohS3YKEvZKz0Kdif+gfhCf+0MMoIres=; b=O8AxOqAhBP7bUNG2LFgID9lMAjfGKIe4K5DnvJjLCz6Mm7s3Fx/zfCIfh8j9LEw+SM IP5xAqKW7ES4nR3jnt2w4XZPlpWInFGEeuLC4N6sjq20prGGaAgoadcDOyzu+EAmCkxA UB6jhl3GjRRvLcYXAsvcoANJ9qmSCTZteDJEcAZGbvhknJCjQ+SD3gGFncKBxn1us+Xx FGxqC/C28jhjWlEXnl6N8uLvw+yunvd/azXeZqK+dhcRPKM8cLyNgs/tSXImv4NzotwA s6jaosCT9uWvzA6UyV3Xu0ebjNNjKUStKk5khlEhtwq0vmjtAPGLiBBdWYkjbfoYhGVb MZAg== X-Forwarded-Encrypted: i=3; AL+hErHSiCbd4avxU5DvN8Z14H0ziyc4i8ZEtwx/qXQS82A89l7CuH/3I/Yi/25wo4A46CEnHVwf@ilbers.de X-Gm-Message-State: APuU4Z9+eZlCavfJrbUir84zRlOMXoxJoGS3nCsTGiXQay5zBv9Pxbsz ANPlDjCRTHkrvsJ0HC3wDQVt+Mguq5E2Pn91OigdtuzEVRLfBxEhFEYN X-Received: by 2002:a17:90b:1a88:b0:3ac:aa8d:19f2 with SMTP id 98e67ed59e1d1-3b182f6a75bmr2583365a91.62.1794407972550; Wed, 11 Nov 2026 06:39:32 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="ATskLdeywKSTN0NQq/aPu8VbQqs3mGSvrgAwnAPPEXVb3rjWUQ==" Received: by 2002:a17:90b:4d01:b0:3ac:aa8d:19ef with SMTP id 98e67ed59e1d1-3b17f9d4318ls1507331a91.2.-pod-prod-07-us; Wed, 11 Nov 2026 06:39:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AL+hErH8ohA4tG+oXKklpU90sYHkvJkTpiZdGaEVne+wNfQMXcNcNlj3eWuLI2hfb2dg+W0w4pWzP+SdoCjH@googlegroups.com X-Received: by 2002:a17:90b:574e:b0:3ab:de4:7fa5 with SMTP id 98e67ed59e1d1-3b182f450efmr2521607a91.56.1794407971216; Wed, 11 Nov 2026 06:39:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1794407971; cv=pass; d=google.com; s=arc-20260327; b=AcE9GS0yAXzPgThaBmHEECQRtOH22Rr6zl3CRvGr1X88RJzt/1dJi3SAAY1/srH6HW g5qpsv9yseUvFwW7WfFP7Ft0uy8AwlQsb22RqZSUVT5Epsq7/Y1WgPe/h++mYzgaHoB9 JsOjxHFYe1jajhL77gB8OJI60KpNRWeF+k8flFYYDVFmBizL3Rh8aYqbG3ScpPhSqJDz jLD/fBRMvpOqfaRJpvXW9Rh5dVRKqq88Xgz480BIYcIPRsngNZ1/60teNkpPeGlc6/lo yvrDNsJASTargrynmXVsGvF1ptpapFqWHXP2kfHZfThAXVF+qW28GmjdsQXG04u9Kyi4 KovQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=mime-version:in-reply-to:content-language:references:to:subject :from:user-agent:date:message-id:dkim-signature; bh=SP/IDRSeIcAbGxnehXTRK/M0Gpr2cbK8ojYR3TfQOfg=; fh=E03ZUUsrZ1lODNyiw0P3AJd9qNij9fO1jVjJSG/jbHs=; b=NNLn1JiM+8lYLR6YJfvBoNHtCoNGphccbL0qdfjF7ybkEL5HJUJ3J0eLonx/1hzyi7 8Nu1bXkDb+w2BL20qCaWi+gEzqemGTYqDPfufajnsogoispnwz+2zMbx6AQPrq0Yw68E yO5VOmqo1+jFSpW+ckuTxXg9jnLwR3hEE9xLX7t/xnQy4EkHz5xs1HhrYf0xuQAPolfU 3UgEQ8MA9Jvm5vKhR+/TwXvt0ffwXi4xQSSJB0IBDedHwBlseJGQV9Q3+ZKGk/5MAmDD +9NSjZ5MEfk1qTBOPs5Hp7GKIVGuYfnPtA80LhcHfO3EmEdbQDK9Q5t2CkQOicStj90a pojg==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="S/Ts64wG"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of clara.kowalsky@siemens.com designates 2a01:111:f403:c20a::7 as permitted sender) smtp.mailfrom=clara.kowalsky@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com. [2a01:111:f403:c20a::7]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-3b17dd01725si73801a91.3.2026.11.11.06.39.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2026 06:39:31 -0800 (PST) Received-SPF: pass (google.com: domain of clara.kowalsky@siemens.com designates 2a01:111:f403:c20a::7 as permitted sender) client-ip=2a01:111:f403:c20a::7; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=It0kBfpI47AVgq7XdRAYiKDJ6wqQV0vCV6OYXEu2qGg6cQ5sL46krzzbFwHm6zuRrYLHCuGPRhW9b2BJ/fZmcZJtPFAuA1hMLqghO7pGe2YvHh5Cyt2RHinxA6REBQ6wYOTTUhigSCPE87Eqr6gehg9mqQrOqw1qDH7/BJdAQlxjoaTbarCTi7NmwOEmngd44VxX50saI+TvnDICqT5jhAA0SJc88Rs0Bg3T0PpEedfyHsi3uztctYlH+BG8QXtq+H6hgrPfH7qnLbSR2EWuScrMqkOUxTMZQ0JVgPo1XqFmWi4Eko9IChyiV4ZODr973BK1sA57SCL75U4S99zIMQ== 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=SP/IDRSeIcAbGxnehXTRK/M0Gpr2cbK8ojYR3TfQOfg=; b=LERl6zDB9toEETYBiTZrsNGEQVJ7brEsxbeWz6hn4FfeZW0abmyKmomrGuvsFF5CdSf/j9Gp61z9uStYx+CfrX9UVHvHhinqRt6DMWpPxK8OhnBeBQJaojdmN33sPtJGGmWeyTRKxQeNd+ktBJOyHIfoPO7gXMkDQGq1dnmtF7nz7Ii965lq63HIeEPACGafmwa2fY8NyIov+xLZJ+2MlrNZ6LI+frThPVEFT/sTOhmNeMyunk17k7lDuUHjVRaIoQwvb/mnd2ScZ/1RYebbtIRGtzoCLAJR2ktNt5pevn2YqNa3dv4uhia61mFvROrbSeYuIH8l0rni8BkSvM7wIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from AM0PR10MB9645.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:740::12) by AS4PR10MB5944.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:51c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.8; Wed, 11 Nov 2026 14:39:26 +0000 Received: from AM0PR10MB9645.EURPRD10.PROD.OUTLOOK.COM ([fe80::527e:14a7:bd3e:86be]) by AM0PR10MB9645.EURPRD10.PROD.OUTLOOK.COM ([fe80::527e:14a7:bd3e:86be%6]) with mapi id 15.21.0615.008; Wed, 11 Nov 2026 14:39:20 +0000 Message-ID: Date: Wed, 11 Nov 2026 15:39:18 +0100 User-Agent: Mozilla Thunderbird From: "'Clara Kowalsky' via isar-users" Subject: Re: [PATCH 5/8] wic: run the Python driver outside the imaging chroot To: "Moessbauer, Felix (FT RPD CPC OES-DE)" , "isar-users@googlegroups.com" References: <20261109091802.202521-1-clara.kowalsky@siemens.com> <20261109091802.202521-6-clara.kowalsky@siemens.com> <17b4c86b8c0a0c717db8fdd2319c8ddb355a9869.camel@siemens.com> Content-Language: en-US In-Reply-To: <17b4c86b8c0a0c717db8fdd2319c8ddb355a9869.camel@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-ClientProxiedBy: VIXP296CA0039.AUTP296.PROD.OUTLOOK.COM (2603:10a6:800:36e::14) To AM0PR10MB9645.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:740::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR10MB9645:EE_|AS4PR10MB5944:EE_ X-MS-Office365-Filtering-Correlation-Id: 34df2bf9-a123-4f9b-b4fd-08df4001926a X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|4022899009|1800799024|376014|23010399003|22082099003|18002099003|6133799003|55112099003|10067099003|3023799007|4133799003|5023799004|56012099006|11063799006|261026121527099003|261102123227099003|4143699003|261021130227099003|261028144727099003|261021121427099003|261102130727099003|261021123027099003|261022113327099003|261021133027099003|261021135927099003|261022075727099003|261022105027099003|261026130827099003|261009223027099003|261022115727099003|261026135527099003|261026140227099003; X-Microsoft-Antispam-Message-Info: g9AK2GrC9FYzZmWnceW8NcCzBSChvY8bWlOglPM09OSGWrlWk0gXiVrFuhLu4xF2bKIBAmA6pnrcV1NAS7gd6V6PDUGRIXjbCBgGHQwvb2nZG5FAQC8qbLBEHXcRLbDfaegPznJQo483tUhpmn5YA/cpY2M8BNUNuKDMN10HNCshExDjjLSX9H9SS/0JDMwyMh5Z0u/LQqOzsaeNQOut33qISgbLgnRQuxj8NS6gifzbSkM1R8FGqeVCTny3We/SWS8uOqqNOyzbU7k9Z8SNa4iuMott95ZRMtvaEYI0527I4bVCPVEan8D8MQmDlPxuQNexIx1ggh4PnblWLXf3V3pk3oA9+fFIoWZl95dzbCgVTu7/xoZXp3G5dA5NVs6BocGA2cjNDaNZYg3LWWo2Mz2Y6D2mLtp+6SUPzjxdS15u4TQtNxZiEo35fVZBIJk9qoEd40qzQ57YZLNaZZrY9fYqAtOUVnyMKv5/yFUKk/pvT0UGANfpthVG7Vt52UBzE3/oMZGsXKdjgzh96u+HQ3A+D3xM43lc369XteICYpzt4345jzEooa0ZorJDgBpldC73i0JYHKM9uFaocL0KOHv+CdgYEYJfjCSqz30r+uJkEIpNyd7prugmClWiyJGF X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR10MB9645.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(4022899009)(1800799024)(376014)(23010399003)(22082099003)(18002099003)(6133799003)(55112099003)(10067099003)(3023799007)(4133799003)(5023799004)(56012099006)(11063799006)(261026121527099003)(261102123227099003)(4143699003)(261021130227099003)(261028144727099003)(261021121427099003)(261102130727099003)(261021123027099003)(261022113327099003)(261021133027099003)(261021135927099003)(261022075727099003)(261022105027099003)(261026130827099003)(261009223027099003)(261022115727099003)(261026135527099003)(261026140227099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MHlhOFpmL1BMQm9JZzl2OHAwMGlqdmtRWWNuczh2M2tOdnZucnBBMzhwSlVw?= =?utf-8?B?MTl1S0YxNkNJbkJ0QmpiM2xWU1Z5TXhScWwrN3Z3VHpTaDNFTmpXUWtqaFlu?= =?utf-8?B?K1BBb1V2YUVkemUzVWhSSGNzRlFJanFxK2lPcjY3TllrRDB2QWQ3OSt6aEpy?= =?utf-8?B?K0d3dWVhamJDdFFkeU5oZW8wQ3g5ZDBVTnh0OHJZaUVsamQrblRKQTVwZzBP?= =?utf-8?B?QXp5Wk15SWVqcEozTHMvQyt1cXRHbUFzMzNvdDA0bWpURENkcUhGYzJFckRy?= =?utf-8?B?aHl4NCs1dTZzb0NHTFpCSnJESHlaRDhlQlFFODZwUWFtOTU5dlZWZ0o5TEZt?= =?utf-8?B?aFNPdnR0d2ZMTW9GVGMrT2xYQ2lvNHk1MTdyM29PQ0dEQTlGN2lMUVlhSUJC?= =?utf-8?B?N1hvNjVlbWdoVG1XNllldzUxMUdpZ0EwckQ4UWFkYmRtZktDNWN4QUJRbi80?= =?utf-8?B?dXBWWjhVM1FvZndQVEFUYkJ6UGlaVlNMNTZ1K1lkYTZvaVdBYWNuVUF2a2w2?= =?utf-8?B?V3d1YnY0bVpYTFZ3VWNvbUFYMjcxUTVoblRhZ091QmFYc2pZbi8ycmhMU0dJ?= =?utf-8?B?bFJVdjg5ZlpDd1RUVFdlMy9VVDM4d0ZYNkJwNWxicGJrQXFlNUV5MTNSUmxz?= =?utf-8?B?QkVkclJudS90NEp0VU9mRU1Xcys3U29VZG5kcDIwa091MFIwTXByVXM1cGEw?= =?utf-8?B?R0JWOWI4Q0w0WVRkODlMdFNrQlkzQUNOM0x2bDZkS2laOFR2b3I0dUowZmUr?= =?utf-8?B?dDBSRUdZWUlENWx5R0VPWU1CTHNKQ2hlMi9kZ1NSS2lyREQ1amhYVjVmRVlQ?= =?utf-8?B?a21uTXVicFZRSzhGajNqQjdhUzBodm5EYUtzWVhiaXFMUitzSnNUaTQ0a3g2?= =?utf-8?B?Y1MyUjRLb0EydEEvcHJFS25xeGw2N3R4RjN6REdJWktvK0RxWnVjNU5YY0Nj?= =?utf-8?B?S1ZORXNQS1JwWUpsSG1hZFFHWEhBSW92UzhqSDdIcGdIcGF3bVJGNGpjSWgx?= =?utf-8?B?NDhWSGtZNklabytPcWYyVUFtbno0TWlhSGhDbmh2TnVubzFSUzlkWS9sTzBr?= =?utf-8?B?TEx5RFFoMHFjc09saWNWWmVwaVE4NjZxWEFOUjBzY29vUXhKc29iMlViRThk?= =?utf-8?B?MFl5WUFXaGFjdEl3RFgwZzcvZ1V6N0J2WDd6TmVtdlRpNlZkNVIrbW1UM1g4?= =?utf-8?B?TFlUOFE1TmNhRnBITnRYQ2d1b3hpVzdERGZhSE5aQ2I3ZGxGWWNLTk1xUVRj?= =?utf-8?B?dlJMaUwzOGpITjRsSmVLMVhlMW05Nmo1Qks5QTNTMDBLc2VvS2t5Q3hiQThh?= =?utf-8?B?b1ZtV1psOTBPbk96d1p6aU1wR3NCcytaaUdGbGM2RHpqMGxDWlF2cnN4VVBt?= =?utf-8?B?eHh5VlJ4QVNPSGp2L3p0dDE4T1p1QnA4V2tUeTA5UlpQMjA4U2UrQzA4NWZa?= =?utf-8?B?TUgyM2U0enNjczRFRTVyelNVWjExanhLdmpKaDl6ZFV4UFBkZWNRRkF3K05k?= =?utf-8?B?d1VxQUJGZUFnakptejRmcW50a1ZGeXdoN2c5MVY0ZHcwTlNZTnVzaXBSdlg3?= =?utf-8?B?Zi9UV0d2Mnd5aEFNa1JxVm5RM2hkM2dVYXVxTXdsK0FYKzR6VUhCQnRMUkQy?= =?utf-8?B?aGN3eEI3a3B6cDlrYXdiemZMWTFtVWRnN3pHWnZRYXEzbU1OTkR6QUFQV3JV?= =?utf-8?B?czFEMmxmUnZKM0xIL3lWTy9sK2Z3MFVhRkQ1aFAxMjF4UDBoOTJqQ3NmbzFo?= =?utf-8?B?Yi9uSW44N3RNSTVkeHVsZ3l6Mmo2dXlVTDFtVmppWS9vK0hBNW1iSWFPak9p?= =?utf-8?B?bDJwejlNWmRBQ2J4M3daVGJqRUpOazI4SzJVWEFRTFlDOEhiMDBMZ1BuWDhU?= =?utf-8?B?Y1Q5YlRQOFBUZW54cHNUOG1hR1pLdG5uUkY4QkxuM2s4Q2tIa2FmdzRwcU5s?= =?utf-8?B?Tlk5Wm5zR0tPSHp5N05QUEpqSG5uejY2bkdReUVTSmtzcENkUnlrK1JRKzEz?= =?utf-8?B?ZzNuRm16SVlXZEdQYXBOOTVZUkdhc1Z6VzQvNE1hV05VL05vY1dpcFdyUTF4?= =?utf-8?B?dTBkRElWSTZrdkpzZnVjYkdITUFMcGl3TEJ2NXpFUFg1VFhzUkVvWjc4NWRS?= =?utf-8?B?OXBLUlgzVUhOTkxNdVkwbVNBcFVRNW9sRGtHZVl6MUxoU3ltUzlCblZackxt?= =?utf-8?B?UGZFbU1Cd3RubXc5WGMxSXVNZWpBVWZ1NHN1Y0JlbVB2aWExS0M0RVJtZlFQ?= =?utf-8?B?Ri9NT3Q2bUV1S0N2cmRnYUx6NThrMzFGWHROQ1VxZm9ZVkJvQkNEU05jQm9J?= =?utf-8?B?QmFadEZJQXFUdEtMb2ozZ04zN2c1R3E5a3MyeEhTQVI2RmtObnMxcVBBS1Zi?= =?utf-8?Q?FyRt2QJrrZbPLz6o=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34df2bf9-a123-4f9b-b4fd-08df4001926a X-MS-Exchange-CrossTenant-AuthSource: AM0PR10MB9645.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2026 14:39:20.6558 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: txHEBwJaWAlf/7k0RPU3nZ2ho/tmovxYibUOLBb55cZ1Ir7vuZt8X2U0l2iNhGABB1indhvs0jxUhnenDgDfAOyVmRMD3k2bkNo1h7mscEo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR10MB5944 X-Original-Sender: clara.kowalsky@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="S/Ts64wG"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of clara.kowalsky@siemens.com designates 2a01:111:f403:c20a::7 as permitted sender) smtp.mailfrom=clara.kowalsky@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Clara Kowalsky Reply-To: Clara Kowalsky Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: O/qHgxiWnlBx On 11/10/26 12:39, Moessbauer, Felix (FT RPD CPC OES-DE) wrote: > On Mon, 2026-11-09 at 10:17 +0100, 'Clara Kowalsky' via isar-users > wrote: >> WIC is a Python tool that imports BitBake (scripts/wic: "import bb"), >> so it needs a Python interpreter that BitBake supports. Isar runs WIC >> inside the imaging chroot, which has the userland of the target >> distribution, so WIC is executed by the chroot's python3. >> >> This blocks updating BitBake: BitBake 2.8 requires Python 3.8 and >> BitBake 2.20 requires 3.9, but Debian buster ships Python 3.7. So far, >> Isar worked around this by lowering BitBake's version check (commit >> da17d920 "bitbake: Downgrade python requirements"). Carrying it on >> would run BitBake 2.20 on an interpreter it does not support. >> >> Fix this by running WIC with the build host's Python, which BitBake >> itself already uses, and executing only the image utilities (e.g., >> mkfs, mtools, bmaptool) in the chroot. imager_run_host runs a script >> outside the chroot with the same privilege handling and mounts as >> imager_run and provides IMAGER_CHROOT. WIC uses WIC_TOOL_RUNNER >> (scripts/wic-chroot) to execute utilities in the chroot and >> WIC_TOOL_SYSROOT to translate native sysroot paths with >> get_native_path(). The rootfs copy helpers in oe.path take an optional >> command runner to use the same mechanism. > > Hi, the wic-chroot script introduced here is isar only, right? IIRC OE > uses scripts/lib/wic/utils/runner.py . Is there a reason why ours is > implemented as shell script with complex escaping instead of a simple > python script? > Yes, wic-chroot is Isar-specific. It adapts WIC's runner hook to Isar's imaging chroot. There's no reason it couldn't be Python. I'll convert it and send a v2 after running the tests. >> >> WIC is invoked as an external script, so its source files are not >> included in do_image_wic's task signature automatically. Fix this by >> listing the driver, runner and modified plugin files in the >> file-checksums, so changes to them rerun the task instead of reusing a >> stale image. The WIC work directory is now ${WORKDIR}/wic instead of >> /tmp in the chroot. >> >> Signed-off-by: Clara Kowalsky >> --- >> RECIPE-API-CHANGELOG.md | 17 ++++++++ >> doc/technical_overview.md | 17 ++++++++ >> .../image-tools-extension.bbclass | 17 +++++++- >> meta/classes-recipe/imagetypes_wic.bbclass | 43 +++++++++++++++---- >> meta/lib/oe/path.py | 18 +++++--- >> .../source/bootimg-biosplusefi-isar.py | 1 + >> .../wic/plugins/source/bootimg-efi-isar.py | 8 +++- >> .../wic/plugins/source/bootimg-pcbios-isar.py | 6 ++- >> .../plugins/source/isoimage-isohybrid-isar.py | 4 +- >> .../lib/wic/plugins/source/rootfs-u-boot.py | 15 ++++--- >> scripts/lib/wic/misc.py | 38 +++++++++++++++- >> scripts/lib/wic/partition.py | 5 ++- >> scripts/lib/wic/plugins/imager/direct.py | 9 ++-- >> .../lib/wic/plugins/source/bootimg-pcbios.py | 6 ++- >> .../wic/plugins/source/isoimage-isohybrid.py | 4 +- >> scripts/lib/wic/plugins/source/rawcopy.py | 20 ++++----- >> scripts/lib/wic/plugins/source/rootfs.py | 17 +++++++- >> scripts/wic-chroot | 18 ++++++++ >> 18 files changed, 215 insertions(+), 48 deletions(-) >> create mode 100755 scripts/wic-chroot >> >> diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md >> index 3798a9d1..42641d9a 100644 >> --- a/RECIPE-API-CHANGELOG.md >> +++ b/RECIPE-API-CHANGELOG.md >> @@ -1225,3 +1225,20 @@ the rootfs. This has been replaced by the `exclude-docs` rootfs feature. The >> >> When enabled, the package changelogs are now removed as well (copyright is still >> kept for legal reasons). >> + >> +### WIC runs on the build host, add imager_run_host >> + >> +WIC's Python driver now runs on the build host instead of inside the imaging >> +chroot. Only the image utilities (e.g. mkfs tools, mtools, bmaptool) still run >> +in the chroot. By that, the chroot distribution no longer needs a Python >> +interpreter that is compatible with BitBake, which is required to update >> +BitBake beyond Debian buster's Python version. >> + >> +Recipes can use the new `imager_run_host` instead of `imager_run` to run a >> +script on the host. It provides the same privilege handling and mounts and >> +sets `IMAGER_CHROOT` to the path of the prepared imaging chroot. > > Can't we make this transparent? Just let imager_run use the host > tooling. By that, we can avoid the breaking change. > Changing imager_run to run on the host by default would change its existing role. It currently executes the supplied script inside the imaging chroot and others rely on that, e.g., SUDO_CHROOT in https://github.com/ilbers/isar/blob/master/meta/classes-recipe/image.bbclass#L185 and VM conversion in https://github.com/ilbers/isar/blob/master/meta/classes-recipe/imagetypes_vm.bbclass#L38. The patch preserves that behavior. imager_run_host is an opt-in that prepares the same chroot, mounts etc, but runs the script on the host and exposes the chroot path as IMAGER_CHROOT. WIC then routes its utility commands into the chroot. Making the split transparent for arbitrary scripts would require guessing which commands should run on the host and which in chroot. Also, adding imager_run_host does not break existing imager_run recipe users. Only the custom WIC plugins that launch subprocesses directly need to be modified to use WIC's runner now that Python runs on the host. >> + >> +Custom WIC plugins that start subprocesses directly must use `exec_cmd()` or >> +`exec_native_cmd()` from `wic.misc` to still run their tools in the chroot. >> +Native sysroot paths passed to such tools must be converted with >> +`get_native_path()`. The WIC work directory is now `${WORKDIR}/wic`. >> diff --git a/doc/technical_overview.md b/doc/technical_overview.md >> index 5d2e1b8a..d3d4e827 100644 >> --- a/doc/technical_overview.md >> +++ b/doc/technical_overview.md >> @@ -243,6 +243,23 @@ This process contains the following steps: >> 1.1. `IMAGE_CMD:ext4`: target filesystem is packed to extfs image. >> 1.2. `IMAGE_CMD:wic`: a bootable disk image gets created for the platform >> >> +WIC runs with the build host's Python interpreter. Image utilities and their >> +data remain in the imaging chroot, so older target distributions do not need >> +to provide a Python interpreter compatible with BitBake. >> + >> +`imager_run_host` prepares the same tool environment as `imager_run`, but >> +executes the supplied shell script outside the chroot. It still uses Isar's >> +privilege handling and, in rootless mode, the mapped user and mount namespaces. >> +`IMAGER_CHROOT` identifies the prepared chroot for the script. >> + >> +WIC uses `WIC_TOOL_RUNNER` to execute utility commands in that environment and >> +`WIC_TOOL_SYSROOT` to locate native tool data from the host. Native paths are >> +converted explicitly with `get_native_path` when constructing utility commands; >> +command text and non-path arguments are not rewritten. Rootfs copy helpers use >> +an optional command executor to route their utilities through the same runner, >> +without changing the default behavior for other callers. Plugins that launch >> +subprocesses directly must integrate with this runner to retain tool isolation. >> + >> ## 3.8 Cross-compilation >> >> Isar provides the possibility to cross-compile all or individual packages. If >> diff --git a/meta/classes-recipe/image-tools-extension.bbclass b/meta/classes-recipe/image-tools-extension.bbclass >> index 8f666444..9532fa47 100644 >> --- a/meta/classes-recipe/image-tools-extension.bbclass >> +++ b/meta/classes-recipe/image-tools-extension.bbclass >> @@ -33,6 +33,10 @@ imager_run() { >> imager_run_${ISAR_CHROOT_MODE} "$@" >> } >> >> +imager_run_host() { >> + IMAGER_HOST_RUN=1 imager_run "$@" >> +} >> + >> imager_run_schroot() { >> local_install="${@(d.getVar("INSTALL_%s" % d.getVar("BB_CURRENTTASK")) or '').strip()}" >> local_bom="${@(d.getVar("BOM_%s" % d.getVar("BB_CURRENTTASK")) or '').strip()}" >> @@ -85,7 +89,11 @@ EOAPT >> ${local_install}" >> fi >> >> - schroot -r -c ${session_id} "$@" >> + if [ "${IMAGER_HOST_RUN:-0}" = "1" ]; then >> + IMAGER_CHROOT="${schroot_dir}" run_privileged_heredoc "$@" > > Why not always run wic from the host? > imager_run_schroot is shared by all imager_run callers. imager_run_host sets the flag so WIC takes the host branch. Existing callers such as the VM conversion still take "schroot -r". Removing the "else" would change those callers' behavior. WIC itself does not use the else path. >> + else >> + schroot -r -c ${session_id} "$@" >> + fi >> >> if [ -n "${local_bom}" ]; then >> schroot -r -c ${session_id} -d / -- \ >> @@ -198,7 +206,12 @@ EOF >> set -e >> mkdir -p ${ROOTFS_IMAGETOOLS}/${SCRIPTSDIR} >> ${@insert_isar_mounts(d, d.getVar('ROOTFS_IMAGETOOLS'), d.getVar('IMAGER_UNSHARE_MOUNTS'))} >> - chroot ${ROOTFS_IMAGETOOLS} "$@" <&3 >> + if [ "${IMAGER_HOST_RUN:-0}" = "1" ]; then >> + export IMAGER_CHROOT="${ROOTFS_IMAGETOOLS}" >> + "$@" <&3 >> + else >> + chroot ${ROOTFS_IMAGETOOLS} "$@" <&3 >> + fi >> EOF >> >> if [ -n "${local_bom}" ]; then >> diff --git a/meta/classes-recipe/imagetypes_wic.bbclass b/meta/classes-recipe/imagetypes_wic.bbclass >> index 6cf7bd8e..25ff3095 100644 >> --- a/meta/classes-recipe/imagetypes_wic.bbclass >> +++ b/meta/classes-recipe/imagetypes_wic.bbclass >> @@ -144,7 +144,23 @@ check_for_wic_warnings() { >> } >> >> do_image_wic[depends] += "${@bb.utils.contains('ROOTFS_FEATURES', 'generate-sbom', 'sbom-chroot:do_build', '', d)}" >> -do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}" >> +do_image_wic[file-checksums] += " \ >> + ${WKS_FILE_CHECKSUM} \ >> + ${SCRIPTSDIR}/wic:True \ >> + ${SCRIPTSDIR}/wic-chroot:True \ >> + ${SCRIPTSDIR}/wic_fakeroot:True \ >> + ${SCRIPTSDIR}/lib/wic/misc.py:True \ >> + ${SCRIPTSDIR}/lib/wic/partition.py:True \ >> + ${SCRIPTSDIR}/lib/wic/plugins/imager/direct.py:True \ >> + ${SCRIPTSDIR}/lib/wic/plugins/source/bootimg-pcbios.py:True \ >> + ${SCRIPTSDIR}/lib/wic/plugins/source/isoimage-isohybrid.py:True \ >> + ${SCRIPTSDIR}/lib/wic/plugins/source/rawcopy.py:True \ >> + ${SCRIPTSDIR}/lib/wic/plugins/source/rootfs.py:True \ >> + ${LAYERDIR_core}/lib/oe/path.py:True \ >> + ${LAYERDIR_core}/scripts/lib/wic/plugins/source/bootimg-pcbios-isar.py:True \ >> + ${LAYERDIR_core}/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py:True \ >> +" >> +do_image_wic[cleandirs] += "${WORKDIR}/wic" >> IMAGE_CMD:wic() { >> generate_wic_image >> check_for_wic_warnings >> @@ -162,9 +178,17 @@ generate_wic_image() { >> mkdir -p ${IMAGE_ROOTFS}/../pseudo >> touch ${IMAGE_ROOTFS}/../pseudo/files.db >> >> - imager_run -p -d ${PP_WORK} -u root <<'EOIMAGER' >> + imager_run_host <<'EOIMAGER' >> set -e >> >> + export WIC_TOOL_RUNNER="${SCRIPTSDIR}/wic-chroot" >> + export WIC_TOOL_SYSROOT="$IMAGER_CHROOT" >> + export TMPDIR="${WORKDIR}/wic/tmp" >> + mkdir -p "$TMPDIR" >> + cd "${WORKDIR}" >> + >> + "$WIC_TOOL_RUNNER" /bin/sh -s <<'EOTOOLS' >> + set -e >> # The python path is hard-coded as /usr/bin/python3-native/python3 in wic. Handle that. >> mkdir -p /usr/bin/python3-native/ >> if [ $(head -1 $(which bmaptool) | grep python3) ];then >> @@ -172,24 +196,27 @@ generate_wic_image() { >> else >> ln -fs /usr/bin/python2 /usr/bin/python3-native/python3 >> fi >> +EOTOOLS >> >> export PATH="${BITBAKEDIR}/bin:$PATH" >> >> "${SCRIPTSDIR}"/wic create "${WKS_FULL_PATH}" \ >> --vars "${STAGING_DIR}/${MACHINE}/imgdata/" \ >> - -o "/tmp/${IMAGE_FULLNAME}.wic/" \ >> + --native-sysroot "$IMAGER_CHROOT" \ >> + -o "${WORKDIR}/wic/" \ >> --bmap \ >> -e "${IMAGE_BASENAME}" ${WIC_CREATE_EXTRA_ARGS} >> >> - WIC_DIRECT=$(ls -t -1 /tmp/${IMAGE_FULLNAME}.wic/*.direct | head -1) >> - mv -f ${WIC_DIRECT} ${PP_DEPLOY}/${IMAGE_FULLNAME}.wic >> - mv -f ${WIC_DIRECT}.bmap ${PP_DEPLOY}/${IMAGE_FULLNAME}.wic.bmap >> + WIC_DIRECT=$(ls -t -1 ${WORKDIR}/wic/*.direct | head -1) >> + mv -f ${WIC_DIRECT} ${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.wic >> + mv -f ${WIC_DIRECT}.bmap ${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.wic.bmap >> # deploy partition files if requested (ending with .p) >> if [ "${WIC_DEPLOY_PARTITIONS}" -eq "1" ]; then >> # locate *.direct.p partition files >> - find "/tmp/${IMAGE_FULLNAME}.wic/" -type f -regextype sed -regex ".*\.direct.*\.p[0-9]\{1,\}" | while read f; do >> + find "${WORKDIR}/wic/" -type f -regextype sed \ >> + -regex ".*\.direct.*\.p[0-9]\{1,\}" | while read f; do >> suffix=$(basename $f | sed 's/.*\.direct\(.*\)/\1/') >> - mv -f ${f} ${PP_DEPLOY}/${IMAGE_FULLNAME}.wic${suffix} >> + mv -f ${f} ${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.wic${suffix} >> done >> fi >> EOIMAGER >> diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py >> index 5d21cdcb..76f1b0cc 100644 >> --- a/meta/lib/oe/path.py >> +++ b/meta/lib/oe/path.py > > Isn't meta/lib/oe just imported from upstream? If so, please do not > patch it here. We probably want to update it along with bitbake. > Yes, I'll remove the path.py changes and move the copy handling into the WIC rootfs plugin. >> @@ -10,6 +10,8 @@ import shutil >> import subprocess >> import os.path >> >> +import bb >> + >> def join(*paths): >> """Like os.path.join but doesn't treat absolute RHS specially""" >> return os.path.normpath("/".join(paths)) >> @@ -85,18 +87,22 @@ def format_display(path, metadata): >> else: >> return rel >> >> -def copytree(src, dst): >> +def copytree(src, dst, command_runner=None): >> # We could use something like shutil.copytree here but it turns out to >> # to be slow. It takes twice as long copying to an empty directory. >> # If dst already has contents performance can be 15 time slower >> # This way we also preserve hardlinks between files in the tree. >> >> + if command_runner is None: >> + command_runner = subprocess.check_output >> bb.utils.mkdirhier(dst) >> cmd = "tar --xattrs --xattrs-include='*' -cf - -S -C %s -p . | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, dst) >> - subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) >> + command_runner(cmd, shell=True, stderr=subprocess.STDOUT) >> >> -def copyhardlinktree(src, dst): >> +def copyhardlinktree(src, dst, command_runner=None): >> """Make a tree of hard links when possible, otherwise copy.""" >> + if command_runner is None: >> + command_runner = subprocess.check_output >> bb.utils.mkdirhier(dst) >> if os.path.isdir(src) and not len(os.listdir(src)): >> return >> @@ -120,7 +126,7 @@ def copyhardlinktree(src, dst): >> # Need to copy directories only with tar first since cp will error if two >> # writers try and create a directory at the same time >> cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -S -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst) >> - subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) >> + command_runner(cmd, shell=True, stderr=subprocess.STDOUT) >> source = '' >> if os.path.isdir(src): >> if len(glob.glob('%s/.??*' % src)) > 0: >> @@ -132,9 +138,9 @@ def copyhardlinktree(src, dst): >> source = src >> s_dir = os.getcwd() >> cmd = 'cp -afl --preserve=xattr %s %s' % (source, os.path.realpath(dst)) >> - subprocess.check_output(cmd, shell=True, cwd=s_dir, stderr=subprocess.STDOUT) >> + command_runner(cmd, shell=True, cwd=s_dir, stderr=subprocess.STDOUT) >> else: >> - copytree(src, dst) >> + copytree(src, dst, command_runner=command_runner) >> >> def copyhardlink(src, dst): >> """Make a hard link when possible, otherwise copy.""" >> diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-biosplusefi-isar.py b/meta/scripts/lib/wic/plugins/source/bootimg-biosplusefi-isar.py >> index fb6b7fcc..df37f97b 100644 >> --- a/meta/scripts/lib/wic/plugins/source/bootimg-biosplusefi-isar.py >> +++ b/meta/scripts/lib/wic/plugins/source/bootimg-biosplusefi-isar.py >> @@ -18,6 +18,7 @@ >> # AUTHORS >> # William Bourque >> >> +import os >> import types >> >> from wic.pluginbase import SourcePlugin >> diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py >> index a2592986..7fb5f448 100644 >> --- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py >> +++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py >> @@ -521,7 +521,13 @@ class BootimgEFIPlugin(SourcePlugin): >> kernel_dir_orig = kernel_dir >> kernel_dir = "/usr/lib/systemd/boot/efi/" >> >> - for mod in [x for x in os.listdir(kernel_dir) if x.startswith("systemd-")]: >> + efi_dir = kernel_dir >> + if os.environ.get('WIC_TOOL_RUNNER'): >> + tool_sysroot = os.environ.get('WIC_TOOL_SYSROOT') >> + if tool_sysroot: >> + efi_dir = os.path.join(tool_sysroot, kernel_dir.lstrip('/')) >> + >> + for mod in [x for x in os.listdir(efi_dir) if x.startswith("systemd-")]: > > These plugins diverge more and more from their upstream counterparts. > Either try to keep them in sync (and the delta minimal), or let's > discuss about just implementing our owns without carrying the dead code > we have from upstream (as a result of our changes). > The plugin already diverges substantially from upstream. This patch only adds the host-side lookup of the systemd EFI files. We can separately decide whether to maintain this as an Isar-owned implementation and remove obsolete code. >> target = mod[8:] >> if target.endswith('.signed'): >> target = target[:-7] >> diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-pcbios-isar.py b/meta/scripts/lib/wic/plugins/source/bootimg-pcbios-isar.py >> index d5040b72..7569c7b1 100644 >> --- a/meta/scripts/lib/wic/plugins/source/bootimg-pcbios-isar.py >> +++ b/meta/scripts/lib/wic/plugins/source/bootimg-pcbios-isar.py >> @@ -18,7 +18,7 @@ from wic import WicError >> from wic.engine import get_custom_config >> from wic.pluginbase import SourcePlugin >> from wic.misc import (exec_cmd, exec_native_cmd, >> - get_bitbake_var, BOOTDD_EXTRA_SPACE) >> + get_bitbake_var, get_native_path, BOOTDD_EXTRA_SPACE) >> >> # allow plugins to import from isarpluginbase >> if '__file__' in globals(): >> @@ -83,7 +83,8 @@ class BootimgPcbiosIsarPlugin(SourcePlugin): >> logger.debug("Installing MBR on disk %s as %s with size %s bytes", >> disk_name, full_path, disk.min_size) >> >> - dd_cmd = "dd if=%s of=%s conv=notrunc" % (mbrfile, full_path) >> + dd_cmd = "dd if=%s of=%s conv=notrunc" % (get_native_path(mbrfile), >> + full_path) >> exec_cmd(dd_cmd, native_sysroot) >> >> @classmethod >> @@ -167,6 +168,7 @@ class BootimgPcbiosIsarPlugin(SourcePlugin): >> bootimg_dir = cls._get_bootimg_dir(bootimg_dir, 'syslinux') >> >> staging_kernel_dir = kernel_dir >> + bootimg_dir = get_native_path(bootimg_dir) >> >> hdddir = "%s/hdd/boot" % cr_workdir >> >> diff --git a/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py b/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py >> index 6aa58870..9a7817e7 100644 >> --- a/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py >> +++ b/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py >> @@ -16,7 +16,8 @@ import shutil >> from wic import WicError >> from wic.engine import get_custom_config >> from wic.pluginbase import SourcePlugin >> -from wic.misc import exec_cmd, exec_native_cmd, get_bitbake_var >> +from wic.misc import (exec_cmd, exec_native_cmd, >> + get_bitbake_var, get_native_path) >> >> # allow plugins to import from isarpluginbase >> if '__file__' in globals(): >> @@ -477,6 +478,7 @@ class IsoImagePlugin(SourcePlugin): >> syslinux_dir = get_bitbake_var("STAGING_DATADIR") >> if not syslinux_dir: >> raise WicError("Couldn't find STAGING_DATADIR, exiting.") >> + syslinux_dir = get_native_path(syslinux_dir) >> >> if os.path.exists("%s/isolinux" % isodir): >> shutil.rmtree("%s/isolinux" % isodir) >> diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py >> index 5611f93a..ab10e391 100644 >> --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py >> +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py >> @@ -17,6 +17,8 @@ import glob >> import logging >> import re >> import os >> +import shlex >> +import shutil >> >> from wic import WicError >> from wic.plugins.source.rootfs import RootfsPlugin >> @@ -98,13 +100,14 @@ class RootfsUBootPlugin(RootfsPlugin): >> results = glob.glob(os.path.join("/usr/bin/qemu-*-static")) >> qemu_static = results[0] if len(results) > 0 else None >> if qemu_static: >> - cp_cmd = "cp -L %s %s/usr/bin" % (qemu_static, real_rootfs_dir) >> - exec_cmd(cp_cmd) >> - update_cmd = "chroot %s sh -c update-u-boot-script" % real_rootfs_dir >> - exec_cmd(update_cmd) >> + qemu_target = os.path.join(real_rootfs_dir, "usr/bin", >> + os.path.basename(qemu_static)) >> + shutil.copy(qemu_static, qemu_target) >> + update_cmd = "TMPDIR=/tmp chroot %s sh -c update-u-boot-script" % \ >> + shlex.quote(real_rootfs_dir) >> + exec_cmd(update_cmd, as_shell=True) >> if qemu_static: >> - rm_cmd = "rm -f %s/usr/bin/%s" % (real_rootfs_dir, qemu_static) >> - exec_cmd(rm_cmd) >> + os.remove(qemu_target) >> >> # For reproducibility set the time stamp of newly updated files >> if os.getenv('SOURCE_DATE_EPOCH'): >> diff --git a/scripts/lib/wic/misc.py b/scripts/lib/wic/misc.py >> index 1a7c140f..dc6114a2 100644 >> --- a/scripts/lib/wic/misc.py >> +++ b/scripts/lib/wic/misc.py >> @@ -15,6 +15,7 @@ >> import logging >> import os >> import re >> +import shlex >> import subprocess >> import shutil >> >> @@ -51,6 +52,17 @@ NATIVE_RECIPES = {"bmaptool": "bmaptool", >> "tar": "tar" >> } >> >> +def get_native_path(path): >> + """Translate a host sysroot path to its matching path in the chroot.""" >> + tool_sysroot = os.environ.get('WIC_TOOL_SYSROOT') >> + if tool_sysroot and os.environ.get('WIC_TOOL_RUNNER'): >> + tool_sysroot = os.path.normpath(tool_sysroot) >> + if path == tool_sysroot: >> + return '/' >> + if path.startswith(tool_sysroot + '/'): >> + return path[len(tool_sysroot):] >> + return path >> + >> def runtool(cmdln_or_args): >> """ wrapper for most of the subprocess calls >> input: >> @@ -62,10 +74,18 @@ def runtool(cmdln_or_args): >> cmd = cmdln_or_args[0] >> shell = False >> else: >> - import shlex >> cmd = shlex.split(cmdln_or_args)[0] >> shell = True >> >> + tool_runner = os.environ.get('WIC_TOOL_RUNNER') >> + if tool_runner and os.path.basename(cmd) != 'bitbake': >> + runner_args = shlex.split(tool_runner) >> + if shell: >> + cmdln_or_args = runner_args + ['/bin/sh', '-c', cmdln_or_args] >> + else: >> + cmdln_or_args = runner_args + cmdln_or_args >> + shell = False >> + >> sout = subprocess.PIPE >> serr = subprocess.STDOUT >> >> @@ -123,6 +143,14 @@ def find_executable(cmd, paths): >> if provided and "%s-native" % recipe in provided: >> return True >> >> + if os.environ.get('WIC_TOOL_RUNNER'): >> + paths = os.pathsep.join(get_native_path(path) >> + for path in paths.split(os.pathsep)) >> + ret, _ = runtool(['/bin/sh', '-c', >> + 'PATH=%s command -v %s' % >> + (shlex.quote(paths), shlex.quote(cmd))]) >> + return ret == 0 >> + >> return shutil.which(cmd, path=paths) >> >> def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""): >> @@ -133,6 +161,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""): >> >> Always need to execute native commands as_shell >> """ >> + native_sysroot = get_native_path(native_sysroot) >> # The reason -1 is used is because there may be "export" commands. >> args = cmd_and_args.split(';')[-1].split() >> logger.debug(args) >> @@ -263,4 +292,9 @@ def get_bitbake_var(var, image=None, cache=True): >> Provide old get_bitbake_var API by wrapping >> get_var method of BB_VARS singleton. >> """ >> - return BB_VARS.get_var(var, image, cache) >> + value = BB_VARS.get_var(var, image, cache) >> + tool_sysroot = os.environ.get('WIC_TOOL_SYSROOT') >> + if tool_sysroot and value and var in ('RECIPE_SYSROOT_NATIVE', >> + 'STAGING_DATADIR', 'STAGING_LIBDIR'): >> + return os.path.join(tool_sysroot, value.lstrip('/')) >> + return value >> diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py >> index bf2c34d5..7c6b83f3 100644 >> --- a/scripts/lib/wic/partition.py >> +++ b/scripts/lib/wic/partition.py >> @@ -15,7 +15,8 @@ import os >> import uuid >> >> from wic import WicError >> -from wic.misc import exec_cmd, exec_native_cmd, get_bitbake_var >> +from wic.misc import (exec_cmd, exec_native_cmd, >> + get_bitbake_var, get_native_path) >> from wic.pluginbase import PluginMgr >> >> logger = logging.getLogger('wic') >> @@ -219,6 +220,7 @@ class Partition(): >> os.remove(rootfs) >> >> p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot) >> + p_prefix = get_native_path(p_prefix) >> if (pseudo_dir): >> # Canonicalize the ignore paths. This corresponds to >> # calling oe.path.canonicalize(), which is used in bitbake.conf. >> @@ -548,4 +550,3 @@ class Partition(): >> logger.warn("%s Inodes (of size %d) are too small." % >> (get_err_str(self), size)) >> break >> - >> diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py >> index a65ae36a..60f2dbf7 100644 >> --- a/scripts/lib/wic/plugins/imager/direct.py >> +++ b/scripts/lib/wic/plugins/imager/direct.py >> @@ -25,7 +25,8 @@ from wic import WicError >> from wic.filemap import sparse_copy >> from wic.ksparser import KickStart, KickStartError >> from wic.pluginbase import PluginMgr, ImagerPlugin >> -from wic.misc import get_bitbake_var, exec_cmd, exec_native_cmd >> +from wic.misc import (get_bitbake_var, get_native_path, >> + exec_cmd, exec_native_cmd) >> >> logger = logging.getLogger('wic') >> >> @@ -212,8 +213,10 @@ class DirectPlugin(ImagerPlugin): >> # Generate .bmap >> if self.bmap: >> logger.debug("Generating bmap file for %s", disk_name) >> - python = os.path.join(self.native_sysroot, 'usr/bin/python3-native/python3') >> - bmaptool = os.path.join(self.native_sysroot, 'usr/bin/bmaptool') >> + tool_sysroot = get_native_path(self.native_sysroot) >> + python = os.path.join(tool_sysroot, >> + 'usr/bin/python3-native/python3') >> + bmaptool = os.path.join(tool_sysroot, 'usr/bin/bmaptool') >> exec_native_cmd("%s %s create %s -o %s.bmap" % \ >> (python, bmaptool, full_path, full_path), self.native_sysroot) >> # Compress the image >> diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py >> index a207a835..77e2e52b 100644 >> --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py >> +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py >> @@ -18,7 +18,7 @@ from wic import WicError >> from wic.engine import get_custom_config >> from wic.pluginbase import SourcePlugin >> from wic.misc import (exec_cmd, exec_native_cmd, >> - get_bitbake_var, BOOTDD_EXTRA_SPACE) >> + get_bitbake_var, get_native_path, BOOTDD_EXTRA_SPACE) >> >> logger = logging.getLogger('wic') >> >> @@ -73,7 +73,8 @@ class BootimgPcbiosPlugin(SourcePlugin): >> logger.debug("Installing MBR on disk %s as %s with size %s bytes", >> disk_name, full_path, disk.min_size) >> >> - dd_cmd = "dd if=%s of=%s conv=notrunc" % (mbrfile, full_path) >> + dd_cmd = "dd if=%s of=%s conv=notrunc" % (get_native_path(mbrfile), >> + full_path) >> exec_cmd(dd_cmd, native_sysroot) >> >> @classmethod >> @@ -146,6 +147,7 @@ class BootimgPcbiosPlugin(SourcePlugin): >> bootimg_dir = cls._get_bootimg_dir(bootimg_dir, 'syslinux') >> >> staging_kernel_dir = kernel_dir >> + bootimg_dir = get_native_path(bootimg_dir) >> >> hdddir = "%s/hdd/boot" % cr_workdir >> >> diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py >> index 607356ad..4b8815b6 100644 >> --- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py >> +++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py >> @@ -18,7 +18,8 @@ import shutil >> from wic import WicError >> from wic.engine import get_custom_config >> from wic.pluginbase import SourcePlugin >> -from wic.misc import exec_cmd, exec_native_cmd, get_bitbake_var >> +from wic.misc import (exec_cmd, exec_native_cmd, >> + get_bitbake_var, get_native_path) >> >> logger = logging.getLogger('wic') >> >> @@ -385,6 +386,7 @@ class IsoImagePlugin(SourcePlugin): >> syslinux_dir = get_bitbake_var("STAGING_DATADIR") >> if not syslinux_dir: >> raise WicError("Couldn't find STAGING_DATADIR, exiting.") >> + syslinux_dir = get_native_path(syslinux_dir) >> >> if os.path.exists("%s/isolinux" % isodir): >> shutil.rmtree("%s/isolinux" % isodir) >> diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py >> index 21903c2f..a5e9b1d6 100644 >> --- a/scripts/lib/wic/plugins/source/rawcopy.py >> +++ b/scripts/lib/wic/plugins/source/rawcopy.py >> @@ -6,8 +6,7 @@ >> >> import logging >> import os >> -import signal >> -import subprocess >> +import shlex >> >> from wic import WicError >> from wic.pluginbase import SourcePlugin >> @@ -48,12 +47,6 @@ class RawCopyPlugin(SourcePlugin): >> >> @staticmethod >> def do_image_uncompression(src, dst, workdir): >> - def subprocess_setup(): >> - # Python installs a SIGPIPE handler by default. This is usually not what >> - # non-Python subprocesses expect. >> - # SIGPIPE errors are known issues with gzip/bash >> - signal.signal(signal.SIGPIPE, signal.SIG_DFL) >> - >> extension = os.path.splitext(src)[1] >> decompressor = { >> ".bz2": "bzip2", >> @@ -63,8 +56,9 @@ class RawCopyPlugin(SourcePlugin): >> }.get(extension) >> if not decompressor: >> raise WicError("Not supported compressor filename extension: %s" % extension) >> - cmd = "%s -dc %s > %s" % (decompressor, src, dst) >> - subprocess.call(cmd, preexec_fn=subprocess_setup, shell=True, cwd=workdir) >> + cmd = "cd %s && %s -dc %s > %s" % (shlex.quote(workdir), decompressor, >> + shlex.quote(src), shlex.quote(dst)) >> + exec_cmd(cmd, as_shell=True) >> >> @classmethod >> def do_prepare_partition(cls, part, source_params, cr, cr_workdir, >> @@ -90,6 +84,12 @@ class RawCopyPlugin(SourcePlugin): >> RawCopyPlugin.do_image_uncompression(img, src, cr_workdir) >> else: >> src = os.path.join(kernel_dir, source_params['file']) >> + if os.environ.get('WIC_TOOL_RUNNER'): >> + tool_sysroot = os.environ.get('WIC_TOOL_SYSROOT') >> + if tool_sysroot and os.path.isabs(src): >> + host_src = os.path.join(tool_sysroot, src.lstrip('/')) >> + if os.path.lexists(host_src): >> + src = host_src >> >> dst = os.path.join(cr_workdir, "%s.%s" % (os.path.basename(source_params['file']), part.lineno)) >> >> diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py >> index e29f3a4c..d9629b9c 100644 >> --- a/scripts/lib/wic/plugins/source/rootfs.py >> +++ b/scripts/lib/wic/plugins/source/rootfs.py >> @@ -13,6 +13,7 @@ >> >> import logging >> import os >> +import shlex >> import shutil >> import sys >> >> @@ -21,7 +22,8 @@ from pathlib import Path >> >> from wic import WicError >> from wic.pluginbase import SourcePlugin >> -from wic.misc import get_bitbake_var, exec_native_cmd >> +from wic.misc import (exec_cmd, exec_native_cmd, >> + get_bitbake_var, get_native_path) >> >> logger = logging.getLogger('wic') >> >> @@ -63,6 +65,7 @@ class RootfsPlugin(SourcePlugin): >> >> @staticmethod >> def __get_pseudo(native_sysroot, rootfs, pseudo_dir): >> + native_sysroot = get_native_path(native_sysroot) >> pseudo = "export PSEUDO_PREFIX=%s/usr;" % native_sysroot >> pseudo += "export PSEUDO_LOCALSTATEDIR=%s;" % pseudo_dir >> pseudo += "export PSEUDO_PASSWD=%s;" % rootfs >> @@ -70,6 +73,12 @@ class RootfsPlugin(SourcePlugin): >> pseudo += "%s " % get_bitbake_var("FAKEROOTCMD") >> return pseudo >> >> + @staticmethod >> + def __copy_rootfs_command(command, cwd=None, **kwargs): >> + if cwd: >> + command = "cd %s && %s" % (shlex.quote(cwd), command) >> + return exec_cmd(command, as_shell=True) >> + >> @classmethod >> def do_prepare_partition(cls, part, source_params, cr, cr_workdir, >> oe_builddir, bootimg_dir, kernel_dir, >> @@ -122,7 +131,11 @@ class RootfsPlugin(SourcePlugin): >> orig_dir = cls.__validate_path("--change-directory", part.rootfs_dir, cd) >> else: >> orig_dir = part.rootfs_dir >> - copyhardlinktree(orig_dir, new_rootfs) >> + command_runner = None >> + if os.environ.get('WIC_TOOL_RUNNER'): >> + command_runner = cls.__copy_rootfs_command >> + copyhardlinktree(orig_dir, new_rootfs, >> + command_runner=command_runner) >> >> # Convert the pseudo directory to its new location >> if (pseudo_dir): >> diff --git a/scripts/wic-chroot b/scripts/wic-chroot >> new file mode 100755 >> index 00000000..19be0c00 >> --- /dev/null >> +++ b/scripts/wic-chroot >> @@ -0,0 +1,18 @@ >> +#!/bin/sh >> +# This software is a part of Isar. >> +# Copyright (C) Siemens AG, 2026 >> +# >> +# SPDX-License-Identifier: MIT >> + >> +set -eu >> + >> +: "${IMAGER_CHROOT:?No imaging chroot configured}" >> + >> +# Expand the variables in the chroot shell, not on the host >> +# shellcheck disable=SC2016 >> +exec chroot "$IMAGER_CHROOT" /bin/sh -c ' >> + cd "$1" || exit >> + shift >> + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin >> + exec "$@" >> +' sh "$PWD" "$@" > > Why not implement this in python and avoid the complex argument > passing? > > Felix > I'll convert this to Python. Clara >> -- >> 2.56.0 >> >> -- >> You received this message because you are subscribed to the Google Groups "isar-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. >> To view this discussion visit https://groups.google.com/d/msgid/isar-users/20261109091802.202521-6-clara.kowalsky%40siemens.com. > -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/b83e5006-b411-4474-843b-d15fe96d1abc%40siemens.com.