Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 087e32ab authored by Robert Nelson's avatar Robert Nelson
Browse files

bare: image: drop /usr/share/doc: 106M


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 2e451a4a
Branches
Tags
No related merge requests found
......@@ -146,6 +146,7 @@ if [ "x${chroot_very_small_image}" = "xenable" ] ; then
#but then allow dpkg to delete these extra files when installed later..
sudo rm -rf ${tempdir}/usr/share/locale/* || true
sudo rm -rf ${tempdir}/usr/share/man/* || true
sudo rm -rf ${tempdir}/usr/share/doc/* || true
#dpkg 1.15.8++
mkdir -p ${tempdir}/etc/dpkg/dpkg.cfg.d/
......@@ -155,6 +156,9 @@ if [ "x${chroot_very_small_image}" = "xenable" ] ; then
sudo sh -c "echo \"# Delete translated man pages\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
sudo sh -c "echo \"path-exclude=/usr/share/man/*\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
sudo sh -c "echo \"\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
sudo sh -c "echo \"# Delete docs\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
sudo sh -c "echo \"path-exclude=/usr/share/doc/*\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
sudo sh -c "echo \"\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
echo "Log: after locale/man purge"
report_size
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment