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, 18 Nov 2026 13:48:07 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f62.google.com (mail-qv1-f62.google.com [209.85.219.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 6AICm5aP012365 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 18 Nov 2026 13:48:06 +0100 Received: by mail-qv1-f62.google.com with SMTP id 6a1803df08f44-92108bbec59sf791196d6.1 for ; Wed, 18 Nov 2026 04:48:05 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1795006080; cv=pass; d=google.com; s=arc-20260327; b=ggPcKX36DArDU1MUNvLg1JI62vF8wGAmNlJD5kF0u8p+j4ic6t751Q7wpHjwblF0k2 zZv5nROKPHuauHVXBzT0oEL4ENlFhsm8u3GQF3Gimb8vNlW/DbUUmVa2+dtsV07BBlQ1 gvfm2di6epSDHyWCketYzWQkoww+B1Xejb0KvOuyNgxyZ7BYcI5QV1C1f1g41QpeiuS1 kjlSQYy6B3UGlziWl+MqdXeqnxOKi1fpNXmTuWF9XnoMBfhKNgoEAT8ly7mepoNCGkJ3 MpgJ0HFslicIbHro5U34r0lBjkaIvOGrUrffNcW+Qc3wb7MkrbCOH99wGqF/gelI96Zz R78Q== 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:content-id :user-agent:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from :dkim-signature; bh=E+/AeeHVSdl0/jmhU1jXQ969TU8REoUfU9RP51QheSk=; fh=A2NBK5WuN+gtF7Tafhwod9S+Mu6df7+GRzT3xsv1eH4=; b=iI4koG9jXZNT52NmmHtl+wO1lvZ0hJLAqtOiWrwR7Py/5Hqy6Tm2MInO9BknZ8t6Mq V6PQfF5R+1Q6XllzMCB2GaeBVOn7HTop68i6ubJFUtUBvy6PPFqLictUZHJdKi9q75ia NovLPrK7/hvrRHIyGGpMIz2X5Nbw/yyT6qEYrGuYnvOYZtEUUj8SMD2BtXmOoBU2gHUr I7oG/vGGb5txQXw4M+FJW3E8yiXltooKRUHhGLcFt0h2xjyLmCx2gx/adJ6wxRI87qrz DD55VGzpRlOp56wyu7jpV2Qpr/d78j7hPT+G5xqqvGoYmeBxjxBiHRJrACLnXhHS4tJ+ jRqA==; darn=ilbers.de ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Mwsn9T13; 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 felix.moessbauer@siemens.com designates 2a01:111:f403:c200::5 as permitted sender) smtp.mailfrom=felix.moessbauer@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=1795006080; x=1795610880; 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-id:content-type:user-agent:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=E+/AeeHVSdl0/jmhU1jXQ969TU8REoUfU9RP51QheSk=; b=Ol43x9UjcxCpj0fNmb1BP4SRmpDKsZvDBeAqCA0eY84mZCwXOCK9spHmf03fCE6T/U VVOAOBkHLoQoMMFQh1aexd9ve3SnogddTXodmNlBwtxK2dKpUQ+ryYzeoF5DfwSVzVh/ mDUxLakYsbTJuxlHyquOF7DkJRGrXJRW92QvK+n+9cyNAwkFt/crFM2eFf+UdQKOmZ09 ESw8mkdYh1Jgux4HTSykvy2kbSzv4r7PXCM8o+3HWmFOv97uORP9pSDQbMOAs2oqkqED y41yrfFGm82raM4LUd0WkKfXOx59LeO1lXnX02j+u/ujTRZ0Yq5agk0iJy1E8qN1nGoR xNdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795006080; x=1795610880; 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-id:content-type:user-agent:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:x-beenthere:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=E+/AeeHVSdl0/jmhU1jXQ969TU8REoUfU9RP51QheSk=; b=icJNZZGi1SzoVgy0eVOouu0lyqcL/iSEQnSGSSaCntphmUzzhxWyx8/b2mxk/CCfdt ylIxjvjBfkuDZ7lzW2OTrbnQ5nbj6969a2Tm2mdVwD6kYNReRcZXvcIzZ0hwEa02DRJs kBgAfrWtHJtuqOTCitol26QCsOVh+rWbHQe40oRXpSFTuHxn/XR72JXo10sBtfucj0z9 nnRuGCPKNlHMb31gnQfFslcwOeXAqQkyHGSiTeMA0/G98LlKNIPTNy7p8TvEv/FMtqjE 2YZJgeHZ/GlmsPwWI0xEa8JL8d5ZNA4pQYn1+4BavyrIXwk0YKO45HNQEk1jZhMw21H/ eAHg== X-Forwarded-Encrypted: i=3; AL+hErEoMbiTW+pWC+cO/ylzcheu2u4syqaYgnAfM1Wridj+C4w8seV64w+FxMvKq14C23/F4LAs@ilbers.de X-Gm-Message-State: APuU4Z/zKaq3MHzQHb23iPq9ot+UZE7BMMANzuzvowNpL3n7WmfjQe4E HfILUsDrRns/mFDzXNGdwpFQV0SbnKMk5LiK/ZMeT3wMMXgUNpMiomYj X-Received: by 2002:a05:6214:2503:b0:921:130c:2267 with SMTP id 6a1803df08f44-92114bdce97mr53900566d6.0.1795006079504; Wed, 18 Nov 2026 04:47:59 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="ATskLddL8XCXl4rsfhWU+e5ss/plD8YSd6ohPLX1zV1pwIuLpg==" Received: by 2002:a05:6214:3483:b0:921:fc6:abbd with SMTP id 6a1803df08f44-921149b118els18972396d6.2.-pod-prod-06-us; Wed, 18 Nov 2026 04:47:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AL+hErETlotmEdvaHm/yfhM1/5W8kpYJUmEM42IyQX0vnDMPm1Ui5hJ3LGE3znjuURCob12z549ZIilAmT0B@googlegroups.com X-Received: by 2002:a05:6214:2dc4:b0:91e:9309:ee5e with SMTP id 6a1803df08f44-92114efc5damr35130696d6.56.1795006077852; Wed, 18 Nov 2026 04:47:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1795006077; cv=pass; d=google.com; s=arc-20260327; b=K4mBX4SJxLjIRvHop292HfmhFtMSsXkpVbcT8paYnycmB3bYJ3drVSGGqQxv9dBLoY /Ghn5fDDXtFXPRX8wzxvA51ddrJNdIZ5E+P8XufKx5Y7nzft5CTdPsfve2xz2Nlfpmvz mEYmohhoUdUged2s/g9bu0ZsfsxWRtCqtBrLrF+g18dO9K7UPBjM7GDhLfwHAFflWdgI 5ArWM4EL6bZONQa/maGEsorYcopYEeXA0h4boAv6MjQLlwW4sUH24LkA1inWiApaUtoe w23R8yIrYppDQ5HqeEXn0An2C6VEchqUbwUa8IUz29L26+1votYwJ9VclAL38ckvYNCv kc7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=mime-version:content-transfer-encoding:content-id:user-agent :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:dkim-signature; bh=Tt/ogrQE5qeDnFL1FS6GtTu9iSLZU0z5kQPw7G6LFIs=; fh=RlRkSafruuzDPAOI0THnydXlLHAeXGM2J5G9LRS6vbE=; b=NqAuowSEuuwyvNi9J/vD73lz4CRYUV6HYpJ921hXVc+qzeSAwhIXP1iW1vN7FjD4F2 sBsYZq0AZnix+p+/I//U6RPdiFEaKv3oZBL/smtoSX1Svd62G3LOL/j5xNyu6IpVL/cY zW7nF+tqc8IwOnsvB06EwVAsJcMnlJTbG3fGddk1oaDjgj6tkR7VfeyAAzaJ7YEZIDOt 79aZ8bKszk0dv2hXjaPjGongkRsE6EppXhycEf+6sE+Ra7hb5xF5XKEzZWQWzd+Xu9kt 9tFMJypR19IoD9s77BVD/lLfiIvMIfKN6qO/wbOSRZHQpNL3+gIWUsHzc6/Pe9J3LsUv aqIg==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Mwsn9T13; 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 felix.moessbauer@siemens.com designates 2a01:111:f403:c200::5 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazlp170120005.outbound.protection.outlook.com. [2a01:111:f403:c200::5]) by gmr-mx.google.com with ESMTPS id 6a1803df08f44-92114e6e9cbsi540296d6.9.2026.11.18.04.47.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 04:47:57 -0800 (PST) Received-SPF: pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c200::5 as permitted sender) client-ip=2a01:111:f403:c200::5; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HlyVMdu2n0Huvq6OYXaJVg8vpC/ccTEbin95y8rVgy+Lc7LgDjsdznlJwwJsfpKhDtKhqSXKBUJ5db2ItlkhPUX+KKUhXSsT9vJ4WlGoMgPtUY5SRvITPeMNmYtWRzjv35zTVJXz/fbdokxksvN1GEUges/tWG1PiqDQTRDN+CMKTuSOtWze5v6pec+bPLWeBH2b+oO3Ww+MJvzjaJGP5IS5YgJcJRU21ZrkrANdAC1FwcbNdZp1ucuVGzKKVC2dVByi7g/BhPnYaMM+lmi6XUiLjDOXSI9gfXUpfHYuIOo/gowKqdlFw4LgC3K8IyuCzN4awXbP6wdYh7x+NGs6ww== 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=Tt/ogrQE5qeDnFL1FS6GtTu9iSLZU0z5kQPw7G6LFIs=; b=tdU5y7SCcSuyJKv9qUXnCm/JqHvnmO/WwqrH0VUn1Vidbxq5wRWCdl3X7BKrofQeHolFHKes9Bj84u50/mR4tuYKGZYIeVFpbTlTTKc6OQs+ojhOOB/Y+5INYVIiu9hdgwWgLk5aAgUntfQmKpxlYyH3ePFbevzCypL1EGWFikTnf/WyqcG2XlWiedEn7guotxNX8SkO9mWmCuDwwvV/UWWUnUd+nygXUPzrYIai8HaA3cQt3pTtuN7GK6gX9aPlNSCevOOC4LC3YtCQCa9+VDFexO4XVWJJYdUqWzcDOeTGcsGQY+aHoXc4S/lfYULKT/z16pAMiyBY8cuKvqwBLg== 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 AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:17e::10) by DB9PR10MB8093.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:4f0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.639.6; Wed, 18 Nov 2026 12:47:53 +0000 Received: from AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM ([fe80::c54c:ccd8:ebbf:477c]) by AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM ([fe80::c54c:ccd8:ebbf:477c%3]) with mapi id 15.21.0639.006; Wed, 18 Nov 2026 12:47:52 +0000 From: "'Moessbauer, Felix' via isar-users" To: "Kowalsky, Clara" , "isar-users@googlegroups.com" Subject: Re: [PATCH v2 3/6] wic: run the Python driver outside the imaging chroot Thread-Topic: [PATCH v2 3/6] wic: run the Python driver outside the imaging chroot Thread-Index: AQHddqHe5+tMGJFRGUm87P+gcgFxdbczyMgA Date: Wed, 18 Nov 2026 12:47:52 +0000 Message-ID: <8f4a852b1eba3bae2ff55ecba2b52a16dd44fe5b.camel@siemens.com> References: <20261117144109.2417395-1-clara.kowalsky@siemens.com> <20261117144109.2417395-4-clara.kowalsky@siemens.com> In-Reply-To: <20261117144109.2417395-4-clara.kowalsky@siemens.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.56.2-10+b1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM7PR10MB3956:EE_|DB9PR10MB8093:EE_ x-ms-office365-filtering-correlation-id: 5264c6d2-2415-46d2-4f6d-08df45722922 x-ms-exchange-atpmessageproperties: SA x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|23010399003|1800799024|366016|376014|261102123227099003|261026140227099003|261026121527099003|261028144727099003|261021135927099003|261022075727099003|261021123027099003|261021121427099003|261022115727099003|261022105027099003|261102130727099003|38070700021|4143699003|5023799004|56012099006|11063799006|10067099003|22082099003|18002099003|261009223027099003|55112099003|6133799003|3023799007; x-microsoft-antispam-message-info: CTN4vkJZAALZ/lef2WDKZefWCTC30CMgyK7u+NvzQBXdUNXn1/8/1lDx36qqfsesXPMV7x7i0/fzuMELVEGidKJtL2PYLQ9sKCqFAKLBo/fxc56AMzj8alrV177py10jQ3cIjF9aanfsCzHljneCzCY2sccirdUl/m7wwhUEUY/naOVbtdvmK9PcUE6sYTlm0+jwKXaoCrpbUpasJnDZL5vETWty5fCB2TRHIdYKUbBJMxQo8a2BVEkoTfl7MUu0eRGd7P1+97B8xmIdvD/gDJqa1X3Yyu19tDwI9GmCMsKe93i9o0GIIH72DSBTOyBcaPe255UVgaJlc2f6qK8MmdF25N5PtOzR1N0i88U75J/s2DCD6J3tkA52+9R+jNiq594xxy72fBuWkvMtjDhpkRE4sJshZUpdRFvmtsUX3/QHqZxv2tNrmjdprBEQFubAKPgCtfWsVfcrExTZEXrglGUn2GoCHwSdb8rtvc3duDJTb4KQiHZ1+s4U5rORv/Pbd65+lA2oQcP0txcFtuyBJlGsljzImkwDXG5mGA30EV4u4MVs+Frp3+NSGUqZNHA1VuVIDgtJ5aP3z3G8iUmourPilpp2tkWrr07cFRMqtIZ08V6pqMGioEblW8RcDQ8PE45vuGUxKirRABg0DLiv1GWSPcjz2VEiH+MXaErx0RzwzRnrcmNW0mtNIYw5QnTot43BlknDIKUPX4PhGuu5ZEe+yTzsRDYyj714foMBRaw= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(366016)(376014)(261102123227099003)(261026140227099003)(261026121527099003)(261028144727099003)(261021135927099003)(261022075727099003)(261021123027099003)(261021121427099003)(261022115727099003)(261022105027099003)(261102130727099003)(38070700021)(4143699003)(5023799004)(56012099006)(11063799006)(10067099003)(22082099003)(18002099003)(261009223027099003)(55112099003)(6133799003)(3023799007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?aFlTNlYyanBDc2tMTHBPQnVpWmVCcU5RVWtMaEdQTmhUcWhTR1BKUXBoQ0pU?= =?utf-8?B?ZlQxdktUREFITmwvNGFPNUdNMGVRRWY4Z0RrT3NpYkkzWGFaWWsyeFhGZmJi?= =?utf-8?B?RDd6TDBOQjY3VmhZK2ozREx4Q1E1OHZ4bGtJSmFpR1BEbkwxUXVUQjU0Njls?= =?utf-8?B?ZEYwcFhaTElnSHQ3SklDUTErOFpUU1Y4K3daVXUwUVhpTUpJcUk3TFBrT2JM?= =?utf-8?B?WUFtVkJlVTE1eVQ3M0JSdm01bVlaZWwwQ3V4azVPV1B3QVEvNlg4UVpXbVNn?= =?utf-8?B?a0p6UWNUSjZHYXlqVnVaS05LK3N2a0NXRWw1NjJWb1ZHV25Ob1N6T0xNNklO?= =?utf-8?B?L24wMmNvZHIrZlNsZzZzMTlPYnZWdUpIQmU2cHpZY0tPanJkYkc4RE1CdGds?= =?utf-8?B?WThzU0pBRUN2ODBYN1ROeHM5OU9vczdnci9XZ1FPRGdQME9YZHF3TW8zUWF2?= =?utf-8?B?SWJjdHhwMzY1d2FKRWVWcndSdFRnT1Y1cG1vTzZFZmpTanJ5TDNDc2lTS3pu?= =?utf-8?B?MjE1UWlNaHpscUZJVEFrS0RBSklGQVZBTlRGdUl5VHU2djBFSXBpYnB4aGNv?= =?utf-8?B?NGJOa29hengvRkRMamZWcnJXVUxLMklwd3lsWndSNUE4VVRSakFodHRaVkpv?= =?utf-8?B?TlA1UTY3bWVaVGhUUWM2NUFoalNsV3BSNXowWGRXSmx0RnAxdmNXaXJIWWpX?= =?utf-8?B?SUhuL1l1VzJVSzJtNkMwcUV6aXNFdERFejRSSENXL3NjWEsvQUZaQ2NEZ1Vx?= =?utf-8?B?RUViQlliOEtNOGJobWpzNnJSVlYyaFJtb1RTbm1Qc2NTL0kxNUJDMFJYb2hH?= =?utf-8?B?NndpZWhTQVg4WmVZM0ZWNjUxMFZJajEzcnBScEMwbFhWc0krSTB1bzVWUXIr?= =?utf-8?B?WWRhYWNxUXBvTXg4REs1TUNQREozR01XQkJRMCtsbEdqRWh5QllMNHNEcDY0?= =?utf-8?B?cytZWWdhTndZMUUvTGdvdHZIajl2OXUzclpNN1ZmSlRRZCs1VHoyZ1J5WGNy?= =?utf-8?B?L1VuMnlxZFpicFRCeERibWc4SjBDclUzMTd2NkR6UEFIQ2g0cWhTNjZidi9p?= =?utf-8?B?b1VDSU96SWZQdWpTSkVjOEVROEpXOXNjc3VCaUhvR2FYcHlVRGFzU3Fqbjhx?= =?utf-8?B?cGRIajNIY0RIV0lBQzZpam1WakhBdTFjRkZ1dEw1a20wd1c5c2FKRUExM0dS?= =?utf-8?B?WnhIcHc0OVlocm95K2JNd2laSkxodlA5SlgzMkJlbDdjWWZPU3Q0dUFjVWJT?= =?utf-8?B?VTNwNm5MT1VYOVZHaDhJdWY0c1d2WDRFRElONzV4TC9pNVorc3plT1praXov?= =?utf-8?B?czB3UWVRTzdHcWY0SWFhSjdwVXp0RzJ1bk1iQmVjSndyWXAyS0hNVUZVSEhq?= =?utf-8?B?ZXVsZFdpVzJmZ294NU5Hd1gwTUdHT3FTeW9CRWhBTUhDVlBBdUt1bDV1bzZD?= =?utf-8?B?SUdhS0RmMjA4V2JFT1lHenhMb0tTcURCOGhWb1JDM1VGK1RFNllXOG56VkVP?= =?utf-8?B?eEU0SUxrUFJWTzNRSVRJTmhmL29HazFJdlIvYzVlbCtoZzVZVnZGRndOYndR?= =?utf-8?B?TlpLV0gydXZGSmltSXRkR3dXdDRmZ2F1U1FiVkxmUWdCNzNqQnBOeEJUKzh6?= =?utf-8?B?WDlEOWRvbGxTaGVPZU44K3kybTJwalV5bDBTUGZUdTRsR01PeXF1QU50aWhR?= =?utf-8?B?L0NHM3d5NVpielJ6a0hXZTFzajRsYlBVRHduN0lmUzBVeGNGallBTUFKa1I3?= =?utf-8?B?VndReXdvMUFCVTNVZ3hsSU1ZSGpZdWJVaUZkVE5LWGJ2b3BpM2JNZVd3bDBE?= =?utf-8?B?Y0k2YlRmTXJvalFGYWFTME5YcExaVXluVHVTNmp3a0hONEkrdHZFWlAwTVdh?= =?utf-8?B?b1hLS2NBeXRlem16QjZOR01OUDhjbFVwTjNNUlhvUTVDQUZQUFJ2UGFwam0r?= =?utf-8?B?eGNObEJUV05mWnRYa1FCWmc1cHlpVTIrdHRHRENZRENSTmUvL0cxdkZVWGh4?= =?utf-8?B?UXdEYjJLNlBuckswUjNXOWViS3NoOUtLajdhVm9RaTZVU0VXcjdKOFQ4dnhv?= =?utf-8?B?VUtnaUFZcktKZGM3QXdTd0h3S1ZITW0xN2lOakNhaStTTDRaTGVEeDkwcGJX?= =?utf-8?B?NmgwU1NvTStjQzFqVjgwd2NRdjd5ODhONld5clZ0TE9aTUVYUjF1c1lWSW9U?= =?utf-8?B?QXdJUGZFS2NTTGM2TTdkb0ZyV1hYNk5BcXMxeW55TjBuQWtuWm85c0p4MU9K?= =?utf-8?B?Y25zTWNGYVpHR0dIeStBSWNiTHNUUHNyTHRJTE4xd29maEp2eWhhWmdLdFRu?= =?utf-8?B?OXBpTHNoNDJGdSttdTk4TTNMWUFKV0l2K0ZSQzBZanZrZUl1SVFCUT09?= Content-Type: text/plain; charset="UTF-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 5264c6d2-2415-46d2-4f6d-08df45722922 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Nov 2026 12:47:52.8101 (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: UwDmmxgr8ZYTv+C9y7kSQD7t05CY2YjrPuO63KgDU6UrKhaJimMb5wIHh9DvilpINlf0kq8kFjAgZLnwu0DUGVRyKr82pGIB6CrKnC09iEs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB8093 X-Original-Sender: felix.moessbauer@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Mwsn9T13; 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 felix.moessbauer@siemens.com designates 2a01:111:f403:c200::5 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: "Moessbauer, Felix" Reply-To: "Moessbauer, Felix" 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_H2,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: 6LMGOsleGnb8 On Tue, 2026-11-17 at 15:41 +0100, Clara Kowalsky 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 to the latest version: BitBake 2.8 to 2.18 > require Python 3.8, BitBake 2.20 requires 3.9, but Debian buster ships > Python 3.7. > 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 WIC rootfs plugin routes its copy commands > through WIC_TOOL_RUNNER when configured. > > 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 > Tested-by: Felix Moessbauer > --- > RECIPE-API-CHANGELOG.md | 17 +++++++ > doc/technical_overview.md | 17 +++++++ > .../image-tools-extension.bbclass | 17 ++++++- > meta/classes-recipe/imagetypes_wic.bbclass | 49 ++++++++++++++++--- > .../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 | 45 +++++++++++++++-- > scripts/wic-chroot | 38 ++++++++++++++ > 17 files changed, 256 insertions(+), 43 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. > + > +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 "$@" > + 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..2f1f23b5 100644 > --- a/meta/classes-recipe/imagetypes_wic.bbclass > +++ b/meta/classes-recipe/imagetypes_wic.bbclass > @@ -144,7 +144,25 @@ 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}/scripts/lib/wic/plugins/source/bootimg-biosplusefi-isar.py:True \ > + ${LAYERDIR_core}/scripts/lib/wic/plugins/source/bootimg-efi-isar.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 \ > + ${LAYERDIR_core}/scripts/lib/wic/plugins/source/rootfs-u-boot.py:True \ > +" > +do_image_wic[cleandirs] += "${WORKDIR}/wic" > IMAGE_CMD:wic() { > generate_wic_image > check_for_wic_warnings > @@ -162,9 +180,21 @@ 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 WIC_TOOL_CWD="${PP_WORK}" > + export WIC_TOOL_HOST_WORKDIR="${WORKDIR}" > + export WIC_TOOL_HOST_ROOTFS="${IMAGE_ROOTFS}" > + export WIC_TOOL_ROOTFS="${PP_ROOTFS}" > + 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 +202,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/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-")]: > 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 Hi, this logic should be exposed as a function, especially to check if the tool to be called actually exists. Previously this simply was checked with os.path.exists(). Example: def tool_path_exists(path): # With WIC_TOOL_RUNNER, tools run in the imaging chroot, so resolve # their paths relative to the chroot when checking from the host. tool_sysroot = os.environ.get('WIC_TOOL_SYSROOT') if os.environ.get('WIC_TOOL_RUNNER') and tool_sysroot \ and os.path.isabs(path): path = os.path.join(tool_sysroot, path.lstrip('/')) return os.path.exists(path) Felix -- 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/8f4a852b1eba3bae2ff55ecba2b52a16dd44fe5b.camel%40siemens.com.