]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dev-manual: Added note about RPM not dealing with post-install
authorScott Rifenbark <srifenbark@gmail.com>
Tue, 22 Nov 2016 00:45:23 +0000 (16:45 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Dec 2016 16:36:47 +0000 (16:36 +0000)
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 <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
documentation/dev-manual/dev-manual-common-tasks.xml

index 39ce2a2497e90a817bcab11ce2a9cd4e6617544a..2c95ecbc99e9bc02890bc4e0d2ce9c6423acc616 100644 (file)
                 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.
+                <note>
+                    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.
+                </note>
             </para>
 
             <para>