title: bitbake recipe for installing deb package
body: <p>I want to install my own custom deb package in yocto image. For this I am using following <em>mydebpkg.bb</em> recipe using <em>ROOTFS_POSTPROCESS_COMMAND</em></p>
  
  <pre><code>SUMMARY = "Recipe for installing deb package"
  DESCRIPTION = "It installs own deb package"
  HOMEPAGE = "" 
  LICENSE = "CLOSED"
  
  inherit bin_package
  
  my_install_pkg_deb() {
  
  ${STAGING_BINDIR_NATIVE}/dpkg \
  
  --root=${IMAGE_ROOTFS}/ --admindir=${IMAGE_ROOTFS}/var/lib/dpkg/  \
  
  -i /home/pi1/install/own_1.3-07u_armhf.deb
  
  }
  
  ROOTFS_POSTPROCESS_COMMAND +=  "my_install_pkg_deb; "
  </code></pre>
  
  <p>But while building image the process fails with following error <em>cannot install package mydebpkg</em> and <em>Function failed: do_rootfs</em>. Where I am making mistake and what will be the correct recipe for installing any deb package.</p>