From bb7e620701ee30b1a66961e7534fdb90449c3162 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Tue, 26 Sep 2017 22:39:09 -0400 Subject: [PATCH] Drop man pages and most of the documentation from minimized images /usr/share/doc/*/copyright and changelog.Debian.gz files are still kept --- live-build/auto/build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/live-build/auto/build b/live-build/auto/build index 9f4b1593..bcf22922 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -51,6 +51,27 @@ Expire-Date: 0 rm -f chroot/etc/localtime chroot/etc/timezone fi + if [ "$SUBPROJECT" = minimize ]; then + # set up dpkg filters to skip installing docs on minimized system + mkdir -p chroot/etc/dpkg/dpkg.cfg.d + cat > chroot/etc/dpkg/dpkg.cfg.d/excludes <