include: rootfs: fix APK compressed scripts tarball support
authorRobert Marko <[email protected]>
Wed, 19 Nov 2025 12:46:29 +0000 (13:46 +0100)
committerRobert Marko <[email protected]>
Wed, 19 Nov 2025 12:51:04 +0000 (13:51 +0100)
commitf4ff823435edd5343c54d01cb717dcadb12eaf13
tree28cda7e8fac151e71be02539b1bde7c73b0a4417
parent9359fc93767ee9e1345c914d77b1cd09d1bdb78f
include: rootfs: fix APK compressed scripts tarball support

APK will generate the compressed scripts.tar by default, however we rely
on using TAR support for updating the tarball on the fly and this does not
work when tarball is compressed and will cause the following errors:
staging_dir/host/bin/tar: Cannot update compressed archives
Try /staging_dir/host/bin/tar --help' or
staging_dir/host/bin/tar --usage' for more information.

So, lets simply decompress the scripts.tar.gz before usage and then
compress it after we are done.

Fixes: 5d85657f6dbb ("apk-tools: implement compression of on-device scripts.tar")
Signed-off-by: Robert Marko <[email protected]>
include/rootfs.mk