[Libguestfs] [PATCH] appliance: exclude /usr/share/fonts and /usr/share/icons.

Pino Toscano ptoscano at redhat.com
Thu Jul 23 15:26:46 UTC 2015


On Thursday 23 July 2015 14:49:25 Richard W.M. Jones wrote:
> I also sorted the list.
> 
> Between libguestfs 1.28 and 1.30, the appliance grew from 95MB to 213MB.
> 
> Using guestmount and filelight (see link below) I could see that the
> main contributor was these two directories, which should not be
> necessary.
> 
> With this change, the size goes down to 119MB.
> 
> See also:
> https://rwmj.wordpress.com/2015/07/23/why-has-the-libguestfs-appliance-grown-by-118-mb/
> ---
>  appliance/excludefiles.in | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/appliance/excludefiles.in b/appliance/excludefiles.in
> index 1564386..d3c66cc 100644
> --- a/appliance/excludefiles.in
> +++ b/appliance/excludefiles.in
> @@ -23,13 +23,15 @@ dnl The right kernel modules are added back by supermin.
>  -/lib/modules/*
>  
>  -/usr/lib/locale/*
> --/usr/share/locale/*
> --/usr/share/man/*
> +-/usr/share/cracklib/*
>  -/usr/share/doc/*
> --/usr/share/info/*
> +-/usr/share/fonts/*
>  -/usr/share/gnome/help/*
> --/usr/share/cracklib/*
>  -/usr/share/i18n/*
> +-/usr/share/icons/*
> +-/usr/share/info/*
> +-/usr/share/locale/*
> +-/usr/share/man/*
>  -/usr/share/pkgconfig/*
>  
>  -/var/log/?tmp

LGTM.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20150723/d2bf5426/attachment.sig>


More information about the Libguestfs mailing list