livecd-rootfs/live-build/ubuntu-core/hooks/10-remove-documentation.binary
Michael Vogt 92b0d8c502 Import patches-unapplied version 2.267 to ubuntu/vivid-proposed
Imported using git-ubuntu import.

Changelog parent: 50aa7ff1c2c14ba7e453dcae26a7a68170d009fc

New changelog entries:
  * live-build/auto/config:
    - system-image: do not install ubuntu-minimal
    - system-image: install KERNEL_FLAVOURS=virtual on i386/amd64
    - system-image: use "--linux-packages=linux-image"
    - add click-hook-framework
  * live-build/auto/build:
    - system-image: collect the deivce.tar.gz
  * live-build/ubuntu-core/hooks/09-move-kernel-to-device-tar.binary:
    - create a device.tar.gz from the installed kernel/modules and
      remove it from the rootfs
  * live-build/ubuntu-core/hooks/10-remove-documentation.binary:
    - strip documentation
  * live-build/ubuntu-core/hooks/11-remove-extra-packages.chroot:
    - remove extra packages like libicu52/libqt that are still on the 
      image because vivid system-image has a dependency on u-d-m which
      depends on libqt
  * live-build/ubuntu-core/hooks/12-add-docker-user.chroot:
    - add a docker user/group into the image (this can go once we have
      a hook for this)
2014-11-14 12:38:28 +00:00

22 lines
793 B
Bash

#!/bin/sh -x
echo "I: Remove unneeded files from /usr/share/doc "
find binary/boot/filesystem.dir/usr/share/doc -depth -type f ! -name copyright|xargs rm -f || true
find binary/boot/filesystem.dir/usr/share/doc -empty|xargs rmdir || true
echo "I: Remove man/info pages"
rm -rf binary/boot/filesystem.dir/usr/share/man \
binary/boot/filesystem.dir/usr/share/groff \
binary/boot/filesystem.dir/usr/share/info \
binary/boot/filesystem.dir/usr/share/lintian \
binary/boot/filesystem.dir/usr/share/linda \
binary/boot/filesystem.dir/var/cache/man
echo "I: Removing /var/lib/apt/lists/*"
find binary/boot/filesystem.dir/var/lib/apt/lists/ -type f | xargs rm -f
echo "I: Removing /var/cache/apt/*.bin"
rm -f binary/boot/filesystem.dir/var/cache/apt/*.bin