[PATCH] linux-custom: add -e option to postinstall script

9 views
Skip to first unread message

srinuv...@siemens.com

unread,
Oct 27, 2025, 3:25:45 AM (4 days ago) Oct 27
to isar-...@googlegroups.com, Srinuvasan A
From: Srinuvasan A <srinuv...@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 <srinuv...@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

Reply all
Reply to author
Forward
0 new messages