From 9dd178a0e5bf0a3d5f544aef83a840b02d6b1aa6 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Thu, 28 Sep 2017 09:38:23 -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 6307d283..a1a6b81f 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -37,6 +37,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 <