Skip to content

Commit

Permalink
Remove all info pages in post-build script (#3888)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sairon authored Feb 20, 2025
1 parent 664ae4e commit 8531e7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildroot-external/scripts/rootfs-layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 8531e7b

Please sign in to comment.