public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "srinuvasan.a via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Srinuvasan A <srinuvasan.a@siemens.com>
Subject: [PATCH] linux-custom: add -e option to postinstall script
Date: Mon, 27 Oct 2025 12:58:54 +0530	[thread overview]
Message-ID: <20251027072854.96296-1-srinuvasan.a@siemens.com> (raw)

From: Srinuvasan A <srinuvasan.a@siemens.com>

While inspecting the kernel package, a warning was observed related
to the postinstall script. It appears the script was not using the
`-e` option, which ensures the script stops immediately upon any error.

To fix this warning, add the -e option to the postinstall script,
similar to how other maintainer scripts have it.

Logs:
W: linux-image-cip: maintainer-script-ignores-errors [postinst]

Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
---
 .../recipes-kernel/linux/files/debian/linux-image.postinst.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/files/debian/linux-image.postinst.tmpl b/meta/recipes-kernel/linux/files/debian/linux-image.postinst.tmpl
index 3a0d281d..72718a2c 100644
--- a/meta/recipes-kernel/linux/files/debian/linux-image.postinst.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/linux-image.postinst.tmpl
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 # based on https://salsa.debian.org/kernel-team/linux/blob/479cb120ecb2b3f2c4d929a7b57860248d6f79bd/debian/templates/image.postinst.in
 # SPDX-License-Identifier: GPL-2.0-only
 
-- 
2.34.1

-- 
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/20251027072854.96296-1-srinuvasan.a%40siemens.com.

                 reply	other threads:[~2025-10-27  7:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251027072854.96296-1-srinuvasan.a@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=srinuvasan.a@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox