summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <timothy.t.orling@linux.intel.com>2018-09-05 20:31:33 -0700
committerTim Orling <timothy.t.orling@linux.intel.com>2018-09-05 20:31:33 -0700
commit1647e21ad000f299684c0892b1401c6a5dfdbd2d (patch)
tree825aa1ef4e9013ced43f8f5aaf24debfb0eb9e0a
parenta622ed4285e8274e1851f64aa87f0d640cae7da9 (diff)
downloadmeta-systemdev-1647e21ad000f299684c0892b1401c6a5dfdbd2d.tar.gz
meta-systemdev-1647e21ad000f299684c0892b1401c6a5dfdbd2d.tar.bz2
meta-systemdev-1647e21ad000f299684c0892b1401c6a5dfdbd2d.zip
iotools: move postinstall to postinst_ontargetthud
Fixes: ERROR: intel-rt-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['iotools'] have failed. If the intention is to defer them to first boot, then please place them into pkg_postinst_ontarget_${PN} (). Deferring to first boot via 'exit 1' is no longer supported. Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
-rw-r--r--recipes-devtools/iotools/iotools_1.5.bb8
1 files changed, 2 insertions, 6 deletions
diff --git a/recipes-devtools/iotools/iotools_1.5.bb b/recipes-devtools/iotools/iotools_1.5.bb
index bc980fa..6c15ce3 100644
--- a/recipes-devtools/iotools/iotools_1.5.bb
+++ b/recipes-devtools/iotools/iotools_1.5.bb
@@ -21,10 +21,6 @@ do_install () {
install -m 0755 ${B}/iotools ${D}${sbindir}/iotools
}
-pkg_postinst_${PN} () {
-if [ -n "$D" ]; then
- exit 1
-fi
-
-${sbindir}/iotools --make-links
+pkg_postinst_ontarget_${PN} () {
+ ${sbindir}/iotools --make-links
}