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

Richard W.M. Jones rjones at redhat.com
Thu Jul 23 13:49:25 UTC 2015


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




More information about the Libguestfs mailing list