mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-09 20:28:08 +00:00
Imported using git-ubuntu import. Changelog parent: c9aadc4a6985a3327e7dc52bc471f3156ae9d764 New changelog entries: [ Michael Vogt ] * live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary: - improve apt-get output * live-build/auto/config: - add click-apparmor for system-image * live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary: - fix incorrect "echo" - add missing wrappers for apt, apt-cache - fix message * live-build/ubuntu-core/hooks/14-set-motd.chroot: - update motd [ James Hunt ] * live-build/ubuntu-core/hooks/10-remove-documentation.binary: - compress remaining documentation to save further space.
23 lines
867 B
Bash
23 lines
867 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
|
|
find binary/boot/filesystem.dir/usr/share/doc -type f -exec gzip -9 {} \;
|
|
|
|
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
|
|
|