X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=make-initramfs.sh.in;h=b6e7820a82f8ea162ba5e9ea410ef4e6391e8d32;hp=495ecc098cf3d1d46f5343c5e2031a37afbbb780;hb=af7e3fc047447ff77ade4640194f9ec519068951;hpb=8cddd6c7e754c8d893eb991bef0171641ad4479e diff --git a/make-initramfs.sh.in b/make-initramfs.sh.in index 495ecc0..b6e7820 100755 --- a/make-initramfs.sh.in +++ b/make-initramfs.sh.in @@ -41,6 +41,7 @@ modules=" -i procps -i strace -i util-linux-ng +-i zerofree " # Decide on names for the final output. These have to match Makefile.am. @@ -65,6 +66,12 @@ rm -f $koutput (cd initramfs && find -name '*python*' -print0) | xargs -0 @FEBOOTSTRAP_RUN@ initramfs -- rm -rf +# In Fedora >= 11, it pulls in all of Perl from somewhere. Nuke from orbit. +@FEBOOTSTRAP_RUN@ initramfs -- rm -rf /usr/lib/perl5 /usr/lib64/perl5 + +# Anaconda? JPEG images? +@FEBOOTSTRAP_RUN@ initramfs -- rm -rf /usr/lib/anaconda-runtime + # Modules take up nearly half of the image. It's a rough guess that # we don't need many drivers (which take up most of the space). (cd initramfs && find lib/modules/*/kernel \