[oe] [meta-oe][PATCH 1/2] gradm: do not use 'exit 1' to postpone to first boot
Hongxu Jia
hongxu.jia at windriver.com
Wed Sep 5 12:33:20 UTC 2018
Since `229f4e9 package.bbclass: add support for
pkg_postinst_ontarget()' applied in oe-core, use
pkg_postinst_ontarget to run postinst at first boot.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta-oe/recipes-support/gradm/gradm_3.1.bb | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/meta-oe/recipes-support/gradm/gradm_3.1.bb b/meta-oe/recipes-support/gradm/gradm_3.1.bb
index 1a4261a..a7d0607 100644
--- a/meta-oe/recipes-support/gradm/gradm_3.1.bb
+++ b/meta-oe/recipes-support/gradm/gradm_3.1.bb
@@ -43,10 +43,6 @@ do_install() {
rm -rf ${D}/dev
}
-pkg_postinst_${PN}() {
- # make sure running on the target
- if [ x"$D" != "x" ]; then
- exit 1
- fi
+pkg_postinst_ontarget_${PN}() {
/bin/mknod -m 0622 /dev/grsec c 1 13
}
--
2.8.1
More information about the Openembedded-devel
mailing list