From 8531e7b57de7b9b3d1b938c26960186106c08ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Thu, 20 Feb 2025 17:50:38 +0100 Subject: [PATCH] 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. --- buildroot-external/scripts/rootfs-layer.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildroot-external/scripts/rootfs-layer.sh b/buildroot-external/scripts/rootfs-layer.sh index 014dfafc7..27e6254a2 100755 --- a/buildroot-external/scripts/rootfs-layer.sh +++ b/buildroot-external/scripts/rootfs-layer.sh @@ -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"