include/rootfs: rework handling of post-install scripts for APK
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 22 May 2024 17:29:32 +0000 (19:29 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 11 Jun 2024 21:58:11 +0000 (23:58 +0200)
commitb92e62d46451fc06cd2bc1ec105a259a5fa41f51
treeeb5e4082230763ab75b5884f56cd4318c96c4d07
parentb47fbca97f70456db9c7222d9d1b7fb2114ae7ac
include/rootfs: rework handling of post-install scripts for APK

Rework handling of post-install scripts for APK. As we do with OPKG,
lets just iterate between each post-install package so we can actually
check if something fail in applying them.

To do this we first extract each .post-install script in APK
scripts.tar.

Also remove these files from final image as they are needed only for the
first installation of the packages.

Link: https://github.com/openwrt/openwrt/pull/15543
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/rootfs.mk