> -----Original Message----- > From: openembedded-core-boun...@lists.openembedded.org > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of > Mark Hatle > Sent: Saturday, March 23, 2013 1:05 AM > > On 3/22/13 11:29 AM, Richard Purdie wrote: > > On Thu, 2013-03-21 at 10:05 +0800, Zhenhua Luo wrote: > >> Split out run-postinsts script into separated package, sometimes only > the postinsts script is required to run all postinsts scripts in > /etc/rpm-postinsts/ instead of the whole rpm package. > >> > >> @@ -223,9 +223,11 @@ FILES_${PN} = "${bindir}/rpm \ > >> ${libdir}/rpm/bin/wget \ > >> /var/lib/rpm \ > >> /var/cache/rpm \ > >> - ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts > \ > >> " > >> > >> +FILES_${PN}-postinsts = > "${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts \ > >> + " > >> + > >> FILES_${PN}-dbg += "${libdir}/rpm/.debug \ > >> ${libdir}/rpm/bin/.debug \ > >> " > > > > Don't we need to depend on this package somewhere so that it gets > > installed? > > I think it should be required from the rootfs_rpm.bbclass in some way. [Luo Zhenhua-B19537] Is following the right way to include the rpm-postinsts into rootfs or any better idea? Below patch is verified to be working.
--- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass @@ -35,6 +35,8 @@ opkglibdir = "${localstatedir}/lib/opkg" RPMOPTS="--dbpath ${rpmlibdir}" RPM="rpm ${RPMOPTS}" +IMAGE_INSTALL += "rpm-postinsts" + # RPM doesn't work with multiple rootfs generation at once due to collisions in the use of files # in ${DEPLOY_DIR_RPM}. This can be removed if package_update_index_rpm can be called concurrently do_rootfs[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock" Best Regards, Zhenhua _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core