Richard W.M. Jones
2015-Jul-23 15:43 UTC
[Libguestfs] [PATCH] appliance: Exclude /usr/lib/modules as well as /lib/modules.
It normally makes no difference to the final size of the appliance, because 'supermin --build' will copy back the host kernel modules. --- appliance/excludefiles.in | 1 + 1 file changed, 1 insertion(+) diff --git a/appliance/excludefiles.in b/appliance/excludefiles.in index 574c828..181b182 100644 --- a/appliance/excludefiles.in +++ b/appliance/excludefiles.in @@ -21,6 +21,7 @@ dnl Of course, this may break the appliance, so be careful. dnl The right kernel modules are added back by supermin. -/boot/* -/lib/modules/* +-/usr/lib/modules/* dnl Firmware blobs should not be required by a virtual machine. dnl Because of UsrMove nonsense, we need to list both directories. -- 2.4.3
Pino Toscano
2015-Jul-23 16:44 UTC
Re: [Libguestfs] [PATCH] appliance: Exclude /usr/lib/modules as well as /lib/modules.
On Thursday 23 July 2015 16:43:57 Richard W.M. Jones wrote:> It normally makes no difference to the final size of the appliance, > because 'supermin --build' will copy back the host kernel modules. > --- > appliance/excludefiles.in | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/appliance/excludefiles.in b/appliance/excludefiles.in > index 574c828..181b182 100644 > --- a/appliance/excludefiles.in > +++ b/appliance/excludefiles.in > @@ -21,6 +21,7 @@ dnl Of course, this may break the appliance, so be careful. > dnl The right kernel modules are added back by supermin. > -/boot/* > -/lib/modules/* > +-/usr/lib/modules/* > > dnl Firmware blobs should not be required by a virtual machine. > dnl Because of UsrMove nonsense, we need to list both directories.LGTM. -- Pino Toscano
Apparently Analagous Threads
- [PATCH v2] appliance: exclude /lib/firmware
- [PATCH] appliance: exclude /usr/lib/firmware
- [PATCH] appliance: Exclude everything in /var/log/* from the appliance (RHBZ#1239154).
- [PATCH] appliance: exclude /usr/share/fonts and /usr/share/icons.
- Re: [PATCH] appliance: exclude /usr/lib/firmware