Re: pkg_postinst_ontarget not executed
toggle quoted messageShow quoted text
When I do a factory reset, the system detects as a first boot and the script is executed.
> cat /var/log/postinstall.log
One thing which puzzles me: the /etc/ipk-postinsts directory do not exist. Not in the image recipe folder, not in the image file which I mount to check the content before flashing and of course it's deleted at the end of run-postinsts
def _save_postinsts_common(self, dst_postinst_dir, src_postinst_dir):
if bb.utils.contains("IMAGE_FEATURES", "package-management",
True, False, self.d):
num = 0
for p in self._get_delayed_postinsts():
if os.path.exists(os.path.join(src_postinst_dir, p + ".postinst")):
shutil.copy(os.path.join(src_postinst_dir, p + ".postinst"),
os.path.join(dst_postinst_dir, "%03d-%s" % (num, p)))
num += 1
package-management is in my image features so I understand nothing get written.
So who temporarily creates that /etc/ipk-postinsts?
On Fri, May 8, 2020 at 6:15 PM Alexander Kanavin <alex.kanavin@...> wrote: