summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorApachez <apachez@gmail.com>2023-08-24 09:22:25 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-24 16:18:49 +0200
commiteaed7095f26fcc8452187d859b1640d91b641885 (patch)
tree9b4cfdaf02b2c1db90fa277258fddbb8d5dedac2
parent42535513ff2c9ae9451c8cbe4b6bf6c6f74ef254 (diff)
downloadvyos-build-eaed7095f26fcc8452187d859b1640d91b641885.tar.gz
vyos-build-eaed7095f26fcc8452187d859b1640d91b641885.zip
T5468: Remove unused manpages to free up space
(cherry picked from commit f9946312dfdfb8163995cf7ddd0efb1e485fc977)
-rwxr-xr-xdata/live-build-config/hooks/live/80-delete-docs.chroot6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/live-build-config/hooks/live/80-delete-docs.chroot b/data/live-build-config/hooks/live/80-delete-docs.chroot
index fa1f5168..8d99b694 100755
--- a/data/live-build-config/hooks/live/80-delete-docs.chroot
+++ b/data/live-build-config/hooks/live/80-delete-docs.chroot
@@ -3,4 +3,8 @@
# We do not need any documentation on the system. This frees some space.
# Copyright/licenses files are ignored for deletion
shopt -s extglob
-rm -rf /usr/share/doc/*/!(copyright) /usr/share/doc-base
+rm -rf /usr/share/doc/*/!(copyright*|README*) /usr/share/doc-base
+
+# We also do not need any manpages on the system since man-binary is missing.
+# This also frees some space.
+rm -rf /usr/share/man