| Message ID | GV0P278MB06880222F486E5880988044993A1A@GV0P278MB0688.CHEP278.PROD.OUTLOOK.COM |
|---|---|
| State | New |
| Headers | show
Return-Path: <david.partain@est.tech> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84394D41C2C for <webhook@archiver.kernel.org>; Thu, 11 Dec 2025 12:23:42 +0000 (UTC) Received: from ZRZP278CU001.outbound.protection.outlook.com (ZRZP278CU001.outbound.protection.outlook.com [40.107.167.110]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.6667.1765450063316489213 for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 02:47:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@duagon.com header.s=selector1 header.b=KtqAFlst; spf=pass (domain: duagon.com, ip: 40.107.167.110, mailfrom: bastian.germann@duagon.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=g9IWXd4xkP8a1GtctijFxfi62CQzwMxfmFE1lqqTqR0FSRr0ojeGUJ8yEgxvmyQO5bmTNViYdLfLI5zmDLF/qlJ+eDpt+oyYyc5X8XtqAasCXI1XoabwXocg9awwF0WB4Qna1uiXXtnSLweP19mc/UMDNOXXmNQkQr1LBLKyfIJCgHgeuON0u57wOzn4krAz1Re5ghVhLVWbJeLmZN36IKG4AOtJ/ejGR17k11I9xNCVy9p0O6RfMyQUDFhBCCDYefIKA5vdbtzoNwVkEIsp77HKQN9Bh/q7yBIcoqbsPmpxue9I9kIw/pyfTCxkyOAinaFCiTKoVK8t1sQDROizrw== 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=w1GKxdgnzvQIWVrMD9C60XoetDHhBEEb8k9dqLzqQ4c=; b=H5Z6gCe+Kj9EDFf1g3xaEPXerGnxf6RsSUGe2KkJkrIA4CQB7LagucS6+R58x4RSvV/NzIl9NIoGX4mtJPkuxHzZuLpgkUcoviJVaKEzdnC1rM02i7jB4XUwwMVQ/5G+xJJd5H2HSAX+75WT/N07jg7+mtcOJxBrR39ynnXWDFjSYQYwlue5xeKbyZjhWZ4KCjfuGRWOZG3IUnhH9t7YKL0TnA5g3fS7WKGLhBTKhXv6FL6ZlxJsk+PwiqA8z/C1ETeMFXoA99aCMl7/so8/CC0aHeRLbI+kw8MYEDg2tZb95kolbIb2Nvp/R3XbZUh/t15hcQdZIaSUeNPLyYw3zA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.93.86.3) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=duagon.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=duagon.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=duagon.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w1GKxdgnzvQIWVrMD9C60XoetDHhBEEb8k9dqLzqQ4c=; b=KtqAFlstflyvoWZE+bk2kdXDc3Yo/9M8a1tnNB2KQPT31eqi444FpuxRvZkiM8DPJap1uESrCw1OrX8e6CC5WX2fnp+uaAPOfFGuER6nf+yvdaqNTfCwvhaSUBJ07ANz/+NJWvU+/LHc/pCbwfWRksnJNki3Dx/VA4br0EBmb6c= Received: from DUZPR01CA0009.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::16) by GV1PPFEF42B3130.CHEP278.PROD.OUTLOOK.COM (2603:10a6:718::231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9388.14; Thu, 11 Dec 2025 10:33:01 +0000 Received: from DB5PEPF00014B89.eurprd02.prod.outlook.com (2603:10a6:10:3c3:cafe::b2) by DUZPR01CA0009.outlook.office365.com (2603:10a6:10:3c3::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9412.9 via Frontend Transport; Thu, 11 Dec 2025 10:33:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.93.86.3) smtp.mailfrom=duagon.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=duagon.com; Received-SPF: Pass (protection.outlook.com: domain of duagon.com designates 40.93.86.3 as permitted sender) receiver=protection.outlook.com; client-ip=40.93.86.3; helo=GVAP278CU002.outbound.protection.outlook.com; pr=C Received: from hz-deliver01.de.seppmail.cloud (162.55.72.219) by DB5PEPF00014B89.mail.protection.outlook.com (10.167.8.197) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9412.4 via Frontend Transport; Thu, 11 Dec 2025 10:33:00 +0000 Received: from hz-glue03.de.seppmail.cloud (unknown [10.11.0.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hz-deliver01.de.seppmail.cloud (Postfix) with ESMTPS id 4dRpnm0hb5z4wlN for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 11:33:00 +0100 (CET) Received: from hz-glue03.de.seppmail.cloud (unknown [172.18.0.6]) by hz-glue03.de.seppmail.cloud (Postfix) with SMTP id 4dRpnm0ZYnz1xbL for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 11:33:00 +0100 (CET) X-SEPP-Suspect: f9d150f0f63a4f329ed712f5b30047fa Received: from hz-scan09.de.seppmail.cloud (unknown [10.11.0.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hz-glue05.de.seppmail.cloud (Postfix) with ESMTPS id 4dRpnm00SBz1wLh for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 11:33:00 +0100 (CET) Received: from hz-scan09 (localhost [127.0.0.1]) by hz-scan09.de.seppmail.cloud (Postfix) with SMTP id 4dRpnl6byhz19B8 for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 11:32:59 +0100 (CET) Received: from hz-m365gate01.de.seppmail.cloud (unknown [10.11.0.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hz-scan09.de.seppmail.cloud (Postfix) with ESMTPS for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 11:32:58 +0100 (CET) Received: from GVAP278CU002.outbound.protection.outlook.com (mail-switzerlandwestazlp17010003.outbound.protection.outlook.com [40.93.86.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (not verified)) by hz-m365gate01.de.seppmail.cloud (Postfix) with ESMTPS id 4dRpnj6WFsz2wjL for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 11:32:57 +0100 (CET) Received: from GV0P278MB0688.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:44::7) by ZRAP278MB0094.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:13::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9388.16; Thu, 11 Dec 2025 10:32:55 +0000 Received: from GV0P278MB0688.CHEP278.PROD.OUTLOOK.COM ([fe80::4ee4:c505:4a4d:6b1b]) by GV0P278MB0688.CHEP278.PROD.OUTLOOK.COM ([fe80::4ee4:c505:4a4d:6b1b%5]) with mapi id 15.20.9388.013; Thu, 11 Dec 2025 10:32:55 +0000 From: "Germann, Bastian" <Bastian.Germann@duagon.com> To: "openembedded-core@lists.openembedded.org" <openembedded-core@lists.openembedded.org> Subject: [PATCH] fix(run-postinsts): exit on error Thread-Topic: [PATCH] fix(run-postinsts): exit on error Thread-Index: AQHcaoiGcAE53GmIMkS/OhJXqqOrrQ== Date: Thu, 11 Dec 2025 10:32:55 +0000 Message-ID: <GV0P278MB06880222F486E5880988044993A1A@GV0P278MB0688.CHEP278.PROD.OUTLOOK.COM> Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-codetwo-clientsignature-inserted: true x-codetwoprocessed: true x-ms-traffictypediagnostic: GV0P278MB0688:EE_|ZRAP278MB0094:EE_|DB5PEPF00014B89:EE_|GV1PPFEF42B3130:EE_ X-MS-Office365-Filtering-Correlation-Id: 81a594ed-4605-44b7-b01b-08de38a0a8a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|1800799024|376014|366016|38070700021; X-Microsoft-Antispam-Message-Info-Original: =?iso-8859-1?q?ZCkqLe3+25fvhTXZx?= =?iso-8859-1?q?rMiCyyp/xAColsTDDFAPUkHEqqiQ8wVeQMU7TG1mw2wcXMc3kNkpsHo+hqzw?= =?iso-8859-1?q?CkFFjK7EdQE6JndTLml2bijLVObL3VEstLYjDFGZrLXFoXlrgk8+Gfo73pfj?= =?iso-8859-1?q?+ecwBK0UAfHpm4JO8wI7/j7C75lmTqoKuF/ru2vggqmcpgFZGTb0LEPjktFy?= =?iso-8859-1?q?Fom6Nr6Gw/tBGlwpONmauU2XNkmVSjnvI6lDWl61VazFbc3ajVwlTAdM6F1C?= =?iso-8859-1?q?0gnG3IY91ARdVC/QA1aAtzIY1pDTf052dQWAHeRZWMqx7L6NWev5aax9D7mR?= =?iso-8859-1?q?7ejQBjBH39oJjpwY3zPVYK3NQFuPc0s8iBqZISYJkSOUZgsnkin/caLw+Etb?= =?iso-8859-1?q?RvcNRjdhtxrh3+btQPxUZAvWxPhH4c5UcaO7+JzNpM4mCjlYeKmDPTx2uei0?= =?iso-8859-1?q?Jl7t1q4dppixyPptK4Exyxo6oLFdnrw4Gh75Cz7hutncp5b5be42kxKFFsuG?= =?iso-8859-1?q?3hcMntR3TeDhG/dE8OGzVX7pqgtFXua03ODE19I96075MQuod3Y3/gk2n4bE?= =?iso-8859-1?q?yUW2xCq0bmMRGCACWLuBKr2FqjTVUMM8jccr5GHo8ns4xlASO68/sgciC1qG?= =?iso-8859-1?q?ranrBEPc3NAe2ahEBCSSUMFv2K3WG+KcBGgNgK6XF5WUJ5sjYtpOLdLV5ZCt?= =?iso-8859-1?q?m9CESbrGlltiD7RtnP0yMdyhqkPSifSo7PbYK1XPUZyyZKEjGPEtX7S6Kyyt?= =?iso-8859-1?q?NZyWFr7kpag9JxRuGUwGeDJaZOMGOJ7osnexEnDf5dKODaUgrmXRcUN0cs31?= =?iso-8859-1?q?WPvdreqyAnJFDRhX+LofGPCchzOe509hEdA+l5cQngQkYVEPswubxVpfxGvf?= =?iso-8859-1?q?8aOc12MgwqEa5sYrBSPCqoFGayXMICkphbrAYv9zrtzjqEN5V784DQusHJ2o?= =?iso-8859-1?q?ipiiB2KVc4sxQE1e+o/RtKB744gMbHThvk7yMZLdc8MdooSHlAcWKF6kaikb?= =?iso-8859-1?q?Yt3sBu2L7b1PtbM+p/FGNkHh/D5dLHP+p1YZNOU0QfrOTEWVECp8GdCuM20P?= =?iso-8859-1?q?bJ8tN3Vm+5sUmrvX8M1UeEgljnk6RP4fFweNPhtzW92VUucxV3jvj+qHq0ej?= =?iso-8859-1?q?m/sx9SA2C/zV0LPYXlaa9cov3iF2k/Vbbb7Deo3mYsK+0sUg12+0/zPthK9F?= =?iso-8859-1?q?6LBS1/W2FAUZKzC68wHaR8wgGxYU75pRl488lV31DjGaWHzX/cbCjJagwVAO?= =?iso-8859-1?q?PQ2OoJlbisZaOq2o7OicH+2H+AUuO2z/ro3K6IVLxGQU2jOmYNbEWrfoguWw?= =?iso-8859-1?q?pPuMQTElxxiua/eucFVbUrPH1kSkXoquM7szXyKukq8+g3FWGilS1Wp4Qbvy?= =?iso-8859-1?q?kbnifo7pTiT3RZp/0MtsZ9Rqsyw4gYNxjBqxKUn99IdETXFXpOvB5rEk4y5g?= =?iso-8859-1?q?nh3A+lFllmQUUc7Tn5BROD82VSOCzdlvyLH3+W3JNTdAwRU5k2eWn3dEi6sy?= =?iso-8859-1?q?5GFv9GYaBj1VBhyr9/X/+X2nigWTMpulHZt0NhtGdfAUlBCohbVY5NJpMzZJ?= =?iso-8859-1?q?0nziGloU922kxYCcRVj?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV0P278MB0688.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(38070700021);DIR:OUT;SFP:1102; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZRAP278MB0094 X-SEPP-CCCVersion: 2025-12-11T08:12:51+01:00 9ed91da2 X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[40.93.86.3];domain=GVAP278CU002.outbound.protection.outlook.com X-MS-Exchange-ExternalOriginalInternetSender: ip=[40.93.86.3];domain=GVAP278CU002.outbound.protection.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B89.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 57816477-9361-4872-c156-08de38a0a540 X-SM-ruleversion: 2.1.0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|14060799003|156008|35042699022|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?q?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z?= =?iso-8859-1?q?M4UZRYWxMjIm55wx0igEGISTLR4keZSjaVRQGG/0bLdFKtyPENMG/8+qHRwK?= =?iso-8859-1?q?gMsBQo2U/V7jhk07Em+ARK4qyZSOgKFLeEclRsnj654+EO5eeg56eDLpjkJH?= =?iso-8859-1?q?+t96RIvjNYP6S/jvRLWfBFOX1sG9qExTtnkPm4kEvrOvlflqhKPRGWd5zBML?= =?iso-8859-1?q?oA+oPu9Gb7Nx3EQHRqqhVA8ubTcKrFDIt3iV6Bo0NVtL5E1d0OmtFjCD7De5?= =?iso-8859-1?q?9KMMRVnzHfa/gGv8NEd+DpArVqAvcspKzHP9zh1ccOVOL/?= X-Forefront-Antispam-Report: CIP:162.55.72.219;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GVAP278CU002.outbound.protection.outlook.com;PTR:mail-switzerlandwestazlp17010003.outbound.protection.outlook.com;CAT:NONE;SFS:(13230040)(36860700013)(376014)(14060799003)(156008)(35042699022)(1800799024)(82310400026);DIR:OUT;SFP:1102; X-OriginatorOrg: duagon.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2025 10:33:00.6948 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 81a594ed-4605-44b7-b01b-08de38a0a8a0 X-MS-Exchange-CrossTenant-Id: e5e7e96e-8a28-45d6-9093-a40dd5b51a57 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5e7e96e-8a28-45d6-9093-a40dd5b51a57;Ip=[162.55.72.219];Helo=[hz-deliver01.de.seppmail.cloud] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B89.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PPFEF42B3130 Content-Language: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable List-Id: <openembedded-core.lists.openembedded.org> X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for <openembedded-core@lists.openembedded.org>; Thu, 11 Dec 2025 12:23:42 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/227525 |
| Series |
fix(run-postinsts): exit on error
|
expand
|
On Thu, 11 Dec 2025 at 13:23, Germann, Bastian via lists.openembedded.org <Bastian.Germann=duagon.com@lists.openembedded.org> wrote: > + if [ $? -ne 0 ]; then > + echo "ERROR: postinst $i failed." > + exit 1 > + fi Indication that there is a problem is probably ok (although there is a post-install-logging image feature that also covers it), but breaking the loop most likely isn't. The current, expected behavior is that execution of all postinsts is at least attempted, and you can't just change it to 'exit immediately when one of them failed'. The if..else condition is also strange: check that the file exists and is executable, and say 'postinst is failed' otherwise? There's a possibility for improving that too. Alex
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index a94a769b59..f374b05e8e 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts @@ -68,6 +68,10 @@ exec_postinst_scriptlets() { [ "$POSTINST_LOGGING" = "1" ] && eval echo "Running postinst $i..." $append_log if [ -x $i ]; then (sh -c $i $append_log) + if [ $? -ne 0 ]; then + echo "ERROR: postinst $i failed." + exit 1 + fi rm $i else echo "ERROR: postinst $i failed."
In case a exec_postinst_scriptlets child process fails during installation we want indication that the service has a problem. Otherwise the error is disguised. Signed-off-by: Bastian Germann <bastian.germann@duagon.com> --- .../run-postinsts/run-postinsts/run-postinsts | 4 ++++ 1 file changed, 4 insertions(+)