Richard W.M. Jones
2015-Jul-23 15:43 UTC
[Libguestfs] [PATCH v2] appliance: exclude /lib/firmware
Brings the size of the appliance down to 95 MB [xz-compressed], which is the same as for libguestfs 1.28. --- appliance/excludefiles.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appliance/excludefiles.in b/appliance/excludefiles.in index d3c66cc..574c828 100644 --- a/appliance/excludefiles.in +++ b/appliance/excludefiles.in @@ -22,6 +22,11 @@ dnl The right kernel modules are added back by supermin. -/boot/* -/lib/modules/* +dnl Firmware blobs should not be required by a virtual machine. +dnl Because of UsrMove nonsense, we need to list both directories. +-/lib/firmware/* +-/usr/lib/firmware/* + -/usr/lib/locale/* -/usr/share/cracklib/* -/usr/share/doc/* -- 2.4.3
Pino Toscano
2015-Jul-23 16:44 UTC
Re: [Libguestfs] [PATCH v2] appliance: exclude /lib/firmware
On Thursday 23 July 2015 16:43:35 Richard W.M. Jones wrote:> Brings the size of the appliance down to 95 MB [xz-compressed], which > is the same as for libguestfs 1.28. > --- > appliance/excludefiles.in | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/appliance/excludefiles.in b/appliance/excludefiles.in > index d3c66cc..574c828 100644 > --- a/appliance/excludefiles.in > +++ b/appliance/excludefiles.in > @@ -22,6 +22,11 @@ dnl The right kernel modules are added back by supermin. > -/boot/* > -/lib/modules/* > > +dnl Firmware blobs should not be required by a virtual machine. > +dnl Because of UsrMove nonsense, we need to list both directories. > +-/lib/firmware/* > +-/usr/lib/firmware/* > + > -/usr/lib/locale/* > -/usr/share/cracklib/* > -/usr/share/doc/*LGTM. -- Pino Toscano
Possibly Parallel Threads
- [PATCH] appliance: exclude /usr/lib/firmware
- [PATCH] appliance: exclude /usr/share/fonts and /usr/share/icons.
- [PATCH] appliance: Exclude /usr/lib/modules as well as /lib/modules.
- Re: [PATCH] appliance: exclude /usr/lib/firmware
- [PATCH] appliance: Exclude everything in /var/log/* from the appliance (RHBZ#1239154).