From d9e3f7629bb8d9a23bd0105c1c3e269f5279fcf3 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 21 Nov 2016 16:45:23 -0800 Subject: dev-manual: Added note about RPM not dealing with post-install Fixes [YOCTO #10351] I added a note to the "Post Installation Scripts" section of the "Writing a New Recipe" section to call out the fact that the RPM package manager will not install packages on the target when any RPM post-install script returns a non-zero exit code when the script is run on the target. (From yocto-docs rev: a2b36b4a352522e3c576a45ee239af51eda518c1) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-common-tasks.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'documentation') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 39ce2a2497..2c95ecbc99 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -3012,6 +3012,13 @@ If the script succeeds, the package is marked as installed. If the script fails, the package is marked as unpacked and the script is executed when the image boots again. + + Any RPM post-installation script that runs on the target + should return a 0 exit code. + RPM does not allow non-zero exit codes for these scripts, + and the RPM package manager will cause the package to fail + installation on the target. + -- cgit v1.2.3-54-g00ecf