Once upon a time we made small debian live systems.
it still lives here
https://github.com/emilwidmann/Debian-light-builder
it was automated, going through the scripts, the shrink step
used this hook
https://github.com/emilwidmann/Debian-light-builder/blob/master/modules/stripped/hooks/stripped.chroot
The apt data could be removed by the loop in lines 23-29
about the mksquashfs options - don't know where and if they are exposed
at all by lb and if there is a way around the hard wired behavior.
Patching seems most promising.
hope this could help
ew
Am 18.02.2017, 21:01 Uhr, schrieb Stefan Baur
<newsgroups.ma...@stefanbaur.de>:
Am 18.02.2017 um 16:19 schrieb Ginger_M:
Hi,
Create file in config/hooks/normal/
e.g. 0112-remove-folders.hook.chroot with content:
#!/bin/sh
set -e
# Remove folders
rm -rf /usr/share/doc/*
rm -rf /usr/share/locale/*
rm -rf /usr/share/man/*
I've discovered that ./var/lib/apt/lists/* is another ~ 100 MB that I
could remove, but adding a rm -rf for that in this hooks script doesn't
help. Should I run it at a later stage than 0112, or what would I have
to do to purge that directory as well?
-Stefan
--
Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/