summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/gradm
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-09-05 08:33:20 -0400
committerKhem Raj <raj.khem@gmail.com>2018-09-05 13:59:16 -0700
commitc6a235aab14a7e83d6d8e32584bf8973b46a7acb (patch)
tree7a41a9f22e6f0c4cd42665e615a49668351f80fe /meta-oe/recipes-support/gradm
parent24172f790a80c1a31adc1d5cb6c26ba986c7d4ab (diff)
downloadmeta-openembedded-c6a235aab14a7e83d6d8e32584bf8973b46a7acb.tar.gz
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 <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/gradm')
-rw-r--r--meta-oe/recipes-support/gradm/gradm_3.1.bb6
1 files changed, 1 insertions, 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 1a4261a9e..a7d0607f8 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() {
43 rm -rf ${D}/dev 43 rm -rf ${D}/dev
44} 44}
45 45
46pkg_postinst_${PN}() { 46pkg_postinst_ontarget_${PN}() {
47 # make sure running on the target
48 if [ x"$D" != "x" ]; then
49 exit 1
50 fi
51 /bin/mknod -m 0622 /dev/grsec c 1 13 47 /bin/mknod -m 0622 /dev/grsec c 1 13
52} 48}