Remove all info pages in post-build script (#3888)

As we don't have the info utility in HAOS, it's worthless to preserve info
pages. While there are currently some files in /share/info (coming from GRUB2
tools install), /usr/share/info was added pre-emptively.
This commit is contained in:
Jan Čermák 2025-02-20 17:50:38 +01:00 committed by GitHub
parent 664ae4ebfc
commit 8531e7b57d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,10 @@ function fix_rootfs() {
rm -rf "${TARGET_DIR:?}/srv"
rm -rf "${TARGET_DIR:?}/opt"
# Remove info pages
rm -rf "${TARGET_DIR:?}/share/info"
rm -rf "${TARGET_DIR:?}/usr/share/info"
# Cleanup miscs
rm -rf "${TARGET_DIR}/usr/lib/modules-load.d"