Re: Clearing apt cache just before building root fs image.
Victor Pablos Ceruelo wrote:
> I'm trying to remove apt cache just before building root filesystem,
> but I don't know how to do it.
/var/cache/apt is cleaned automatically.
if you want /var/lib/apt to be cleaned too, use --binary-indices false
(only for live-helper >= 2.0~a6; before it a different meaning).
> I've tried removing them with hook scripts (config/chroot_local-hooks/ dir)
> but after running these scripts it downloads some files
> (so it fails or it downloads again).
they are required to build the image, however, the binary image is
generated before those are installed.
> Is there any way of doing this without using live helper "stripped"
> (any directory where I can put scripts to be run just before building
> root fs)
what's wrong with chroot_local-hooks?
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist