From 7b8af4b16ae2edbbde8620d6be978762d31e51ff Mon Sep 17 00:00:00 2001 From: Andre Goddard Rosa Date: Thu, 3 Jan 2019 17:11:47 -0800 Subject: Signalize run-agl-postinsts error appropriately to systemd If any of the post-install scripts fail during first boot, they should be retried on subsequent boots. That was not happening because run-agl-postinsts.service would be disabled even if a post-install script failed as it always returned success on its execution. Now signalize properly when it sees any error while executing some post-install script. Change-Id: I4402ee69c80814b06e3cc25cb400a66de3b5652d Signed-off-by: Andre Goddard Rosa --- .../run-agl-postinsts/run-agl-postinsts/run-agl-postinsts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-agl-profile-core/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts b/meta-agl-profile-core/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts index 1d1a5a059..a044fb753 100755 --- a/meta-agl-profile-core/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts +++ b/meta-agl-profile-core/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts @@ -45,4 +45,6 @@ systemctl daemon-reload # since all postinstalls executed successfully, remove the postinstalls directory if [ $remove_agl_pi_dir = 1 ]; then rm -rf $agl_pi_dir + exit 0 fi +exit 1 -- cgit 1.2.3-korg