Bug 9248

Summary: ROOTFS_POSTINSTALL_COMMAND used only for OpkgRootfs builds
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Gatis Paeglis <gatis.paeglis>
Component: coreAssignee: Bill Randle <bill.randle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bill.randle, meta.mr.watcher, meta.watcher, ross.burton
Version: unspecified   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Gatis Paeglis 2016-03-14 14:05:21 UTC
DpkgRootfs and RpmRootfs do not read the ROOTFS_POSTINSTALL_COMMAND variable.
Noticed this while looking at poky/meta/lib/oe/rootfs.py

I am using ROOTFS_POSTINSTALL_COMMAND to run my post processing script (to update file timestamps to a known consistent time) before self._run_intercepts() is called.

I am using OpkgRootfs so its not an issue for me, but ideally this should be fixed for dpkg and rpm too.
Comment 1 Bill Randle 2016-04-12 22:16:24 UTC
As noted, ROOTFS_POSTINSTALL_COMMAND was run only after the opkg rootfs install post processing phase. Submitted a patch to the OE mailing list that makes it generic so it is run after any package manager specific rootfs post processing, but before _run_intercepts().
Comment 2 Ross Burton 2016-04-14 16:51:17 UTC
Fixed in oe-core 8f2571881cd01ace88d282a63ad802cab4ab6940.