Ian Main
2008-Oct-07 18:07 UTC
[Ovirt-devel] [PATCH node-image] Clean up dependancies from libvirt-qpid install.
Clean up libicu (unicode library - 6MB rpm) and various libboost libraries after installation of libvirt-qpid. This brings the libvirt-qpid addition to the node down to 3MB (52MB to 55MB) rpm size. Signed-off-by: Ian Main <imain at redhat.com> --- common-post.ks | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/common-post.ks b/common-post.ks index 0a1c60f..deee9a5 100644 --- a/common-post.ks +++ b/common-post.ks @@ -62,7 +62,7 @@ $RPM gamin pm-utils kbd libuser passwd usermode \ vbetool ConsoleKit hdparm \ efibootmgr krb5-workstation linux-atm-libs fedora-release-notes \ slang psmisc gdbm cryptsetup-luks pciutils mtools syslinux db4 \ - wireless-tools radeontool cracklib-dicts cracklib + wireless-tools radeontool cracklib-dicts cracklib libicu # Things we could probably remove if libvirt didn't link against them #$RPM avahi PolicyKit xen-libs @@ -148,4 +148,11 @@ eval $RM $blacklist $blacklist_lib $blacklist_pango $blacklist_hal \ echo "Cleanup empty directory structures in /usr/share" find /usr/share -type d -exec rmdir {} \; > /dev/null 2>&1 -echo "Finished Kickstart Post" +echo "Running image-minimizer..." +%post --nochroot --interpreter image-minimizer +drop /usr/lib/libboost* +keep /usr/lib/libboost_program_options.so* +keep /usr/lib/libboost_filesystem.so* +drop /usr/lib64/libboost* +keep /usr/lib64/libboost_program_options.so* +keep /usr/lib64/libboost_filesystem.so* -- 1.5.5.1