On Thu, 11 Dec 2025 at 13:23, Germann, Bastian via
lists.openembedded.org
<[email protected]> 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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#227528): 
https://lists.openembedded.org/g/openembedded-core/message/227528
Mute This Topic: https://lists.openembedded.org/mt/116727799/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to