summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorApachez <apachez@gmail.com>2023-08-24 09:22:25 +0200
committerApachez <apachez@gmail.com>2023-08-24 09:22:25 +0200
commitf9946312dfdfb8163995cf7ddd0efb1e485fc977 (patch)
treecd8c0705b86c7e243dd02d7ef2089c60b287ea95
parentd48d47260b0bd5ed066478d82fb1fe2f0a6321f7 (diff)
downloadvyos-build-f9946312dfdfb8163995cf7ddd0efb1e485fc977.tar.gz
vyos-build-f9946312dfdfb8163995cf7ddd0efb1e485fc977.zip
T5468: Remove unused manpages to free up space
-rwxr-xr-xdata/live-build-config/hooks/live/80-delete-docs.chroot5
1 files changed, 5 insertions, 0 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 ce18bc8f..33a6bf74 100755
--- a/data/live-build-config/hooks/live/80-delete-docs.chroot
+++ b/data/live-build-config/hooks/live/80-delete-docs.chroot
@@ -4,3 +4,8 @@
# Copyright/licenses files are ignored for deletion
shopt -s extglob
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
+