Richard W.M. Jones
2015-Jul-23 13:49 UTC
[Libguestfs] [PATCH] appliance: exclude /usr/share/fonts and /usr/share/icons.
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 -- 2.4.3
Pino Toscano
2015-Jul-23 15:26 UTC
Re: [Libguestfs] [PATCH] appliance: exclude /usr/share/fonts and /usr/share/icons.
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/?tmpLGTM. -- Pino Toscano
Seemingly Similar Threads
- [PATCH v2] appliance: exclude /lib/firmware
- [PATCH] appliance: exclude /usr/lib/firmware
- Re: [PATCH] appliance: exclude /usr/lib/firmware
- [supermin PATCH] build: ignore empty files
- [PATCH] appliance: Exclude everything in /var/log/* from the appliance (RHBZ#1239154).