When the POSTINST_LOGGING is enabled the output of the post-install script is not stored in the 'postinstall.log' file. This probably happened since commit 706410c847ac9c89317d098de5d5c580736edbbb.
Fix the post-install script execution statement to honor the stdout/stderr redirection to the 'postinstall.log' file. Signed-off-by: Samuele Favazza <[email protected]> --- meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index b7352aa24d..e8c31e04ce 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts @@ -67,7 +67,7 @@ exec_postinst_scriptlets() { echo "Running postinst $i..." [ "$POSTINST_LOGGING" = "1" ] && eval echo "Running postinst $i..." $append_log if [ -x "$i" ]; then - (sh -c "$i" $append_log) + (sh -c "$i $append_log") status=$? if [ $status -ne 0 ]; then echo "ERROR: postinst $i failed with exit code $status."
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#227964): https://lists.openembedded.org/g/openembedded-core/message/227964 Mute This Topic: https://lists.openembedded.org/mt/116810435/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
