From c6a235aab14a7e83d6d8e32584bf8973b46a7acb Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Wed, 5 Sep 2018 08:33:20 -0400 Subject: [PATCH] gradm: do not use 'exit 1' to postpone to first boot 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 Signed-off-by: Khem Raj --- 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 1a4261a9ea..a7d0607f8d 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 }