ccache can help greatly in speeding up recompilations in sbuild, but it
is a bit annoying to configure at each schroot creation.
So, add --cache option (and relative CCACHE config parameter) to
configure ccache for sbuild schroots.
By default we use a shared ccache directory, but each schroot can use
a customized one if needed (with local parameters) by using --cache-dir
(or CCACHE_DIR).
Default ccache max-size is 4G, but can be configured with --ccache-size
(or CCACHE_SIZE), the size value is applied to each ccache path, so can
be shared by multiple schroots or applied to a single one.
* mk-sbuild: conditionally install lvm2 only for lvm-snapshot schroots
* mk-sbuild: rationalise architecture variables
* mk-sbuild: Generalise --type support and add "file" SCHROOT_TYPE
* mk-sbuild.1: Document the --type argument
* mk-sbuild: clean up and make slight adjustments to new lvm/dir/file logic.
* mk-sbuild: clean up and make slight adjustments to new lvm/aufs logic.
* mk-sbuild.1: update documentation to reflect alternative config file
names for distro and schroot type overrides.