[OE-core] [PATCH 3/3] prelink: do not use 'exit 0' to incorrectly postpone to first boot
Hongxu Jia
hongxu.jia at windriver.com
Wed Sep 5 12:36:03 UTC 2018
After postinst was executed at do_rootfs successfully,
there will be no first boot to redo.
Since `229f4e9 package.bbclass: add support for
pkg_postinst_ontarget()' applied in oe-core, use
pkg_postinst_ontarget to instead.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/recipes-devtools/prelink/prelink_git.bb | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb
index c5eaedd..c110bd2 100644
--- a/meta/recipes-devtools/prelink/prelink_git.bb
+++ b/meta/recipes-devtools/prelink/prelink_git.bb
@@ -158,13 +158,7 @@ do_install_append () {
# Prelinking during a cross install should be handled by the image-prelink
# bbclass. If the user desires this to run on the target at first boot
# they will need to create a custom boot script.
-pkg_postinst_prelink() {
-#!/bin/sh
-
-if [ "x$D" != "x" ]; then
- exit 0
-fi
-
+pkg_postinst_ontarget_prelink() {
prelink -a
}
--
2.8.1
More information about the Openembedded-core
mailing list