This saves about 30 MB of uncompressed space. --- scripts/upd-instroot | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 7a958e4..9c6ede5 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -185,7 +185,7 @@ PACKAGES="GConf2 NetworkManager NetworkManager-gnome ORBit2 acl anaconda lohit-kashmiri-fonts lohit-kannada-fonts lohit-maithili-fonts lohit-marathi-fonts lohit-oriya-fonts lohit-punjabi-fonts lohit-sindhi-fonts lohit-tamil-fonts lohit-telugu-fonts lsof lvm2 madan-fonts mdadm - mesa-dri-drivers metacity module-init-tools ncurses neon net-tools + metacity module-init-tools ncurses neon net-tools newt newt-python nfs-utils nspr nss nss-softokn ntfs-3g openldap openssh openssh-server pam pango parted pciutils pcre psmisc @@ -500,7 +500,6 @@ sbin/xfsrestore sbin/ybin usr/include/python?.?/pyconfig*.h usr/$LIBDIR/NetworkManager -usr/$LIBDIR/dri usr/$LIBDIR/gconv usr/$LIBDIR/gdk-pixbuf/loaders/*la* usr/$LIBDIR/gdk-pixbuf/loaders/*png*
This saves about 8 MB of uncompressed space. --- scripts/upd-instroot | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 9c6ede5..c5d58cc 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -400,7 +400,10 @@ etc/report.d/* etc/rpm/macros.prelink etc/security/limits.conf etc/security/pam_env.conf -etc/selinux/targeted +etc/selinux/targeted/policy +etc/selinux/targeted/contexts +etc/selinux/targeted/*conf +etc/selinux/targeted/seusers etc/services etc/shells etc/sysconfig/network-scripts/network-functions*
This saves about 6 MB of uncompressed space. It's also not strictly needed since we're running out of memory anyway so icon lookups should be pretty quick without it. Also, anaconda doesn't load very many icons. --- scripts/upd-instroot | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index c5d58cc..29f4c51 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -1105,6 +1105,7 @@ mv $DEST/usr/$LIBDIR/python?.?/site-packages/pyanaconda/sitecustomize.py $DEST/u mv $DEST/etc/yum.repos.d $DEST/etc/anaconda.repos.d
rm -f $DEST/usr/$LIBDIR/libunicode-lite* +rm -f $DEST/usr/share/icons/*/icon-theme.cache
find $DEST -type d | xargs chmod 755
This saves about 63 MB of uncompressed space. --- scripts/upd-instroot | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 29f4c51..b98f4bd 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -618,6 +618,7 @@ usr/libexec/polkit* usr/sbin/NetworkManager usr/sbin/addRamDisk usr/sbin/anaconda +usr/sbin/build-locale-archive usr/sbin/chroot usr/sbin/dcbtool usr/sbin/ddcprobe @@ -1022,7 +1023,7 @@ cat $DEST/usr/share/anaconda/lang-table* | awk ' }; print $2; } -' | sed -e 's/latn/Latn/g' | LC_ALL=C sort -u > $DEST/locales +' | grep -v Sotho | grep -v latarcyrhebsun16 | sed -e 's/latn/Latn/g' | LC_ALL=C sort -u > $DEST/locales for p in lib share; do ( cd $DEST/usr/$p/locale && { ls | grep -v locale.alias | grep -v locale-archive | LC_ALL=C sort > $DEST/locales.list @@ -1030,7 +1031,14 @@ for p in lib share; do ( } ); done
-rm -f $DEST/locales $DEST/locales.list +# Now shrink the locale-archive to contain just the minimum. +localedef --prefix $DEST --list-archive > $DEST/locales.glibc +LC_ALL=C unsupported="$(comm -13 $DEST/locales $DEST/locales.glibc)" +localedef --prefix $DEST --delete-from-archive $unsupported +mv $DEST/usr/lib/locale/locale-archive $DEST/usr/lib/locale/locale-archive.tmpl +/usr/sbin/chroot $DEST /usr/sbin/build-locale-archive + +rm -f $DEST/locales $DEST/locales.list $DEST/locales.glibc
# fix up some links for man page related stuff for file in nroff groff iconv geqn gtbl gpic grefer ; do @@ -1106,6 +1114,7 @@ mv $DEST/etc/yum.repos.d $DEST/etc/anaconda.repos.d
rm -f $DEST/usr/$LIBDIR/libunicode-lite* rm -f $DEST/usr/share/icons/*/icon-theme.cache +rm -f $DEST/usr/sbin/build-locale-archive
find $DEST -type d | xargs chmod 755
These patches came from my branch to merge the initrd and install.img, but are completely valid for master as well. Just pretend that everywhere it says initrd, I'm referring to the install.img.
- Chris
On Fri, 27 Aug 2010, clumens@redhat.com wrote:
These patches came from my branch to merge the initrd and install.img, but are completely valid for master as well. Just pretend that everywhere it says initrd, I'm referring to the install.img.
Ack to all 4.
anaconda-devel@lists.stg.fedoraproject.org