summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-01-10 18:05:30 +0000
committerJeremy Katz <katzj@redhat.com>2003-01-10 18:05:30 +0000
commit4d26d02252d7de052e575e9b646533bca39513c4 (patch)
tree6bb48e82066c55b2f183eca60d8528deb2eb8593 /scripts
parent029fb3d95c9bd2c7364169e569cf027b6380024a (diff)
downloadanaconda-4d26d02252d7de052e575e9b646533bca39513c4.tar.gz
anaconda-4d26d02252d7de052e575e9b646533bca39513c4.tar.xz
anaconda-4d26d02252d7de052e575e9b646533bca39513c4.zip
some manual pruning of python stuff that's large and not needed for stage2
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index c8953bc18..a9dd21282 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -1005,6 +1005,16 @@ done
# do some stripping of debugging symbols
find $DESTGR -type f -name '*.so' |xargs strip -g
+# some python stuff we don't need for stage2
+rm -f $DESTGR/usr/$LIBDIR/python?.?/site-packages/distutils/
+rm -f $DESTGR/usr/$LIBDIR/python?.?/site-packages/lib-dynload/japanese
+rm -f $DESTGR/usr/$LIBDIR/python?.?/site-packages/encodings/
+rm -f $DESTGR/usr/$LIBDIR/python?.?/site-packages/compiler/
+rm -f $DESTGR/usr/$LIBDIR/python?.?/site-packages/email/
+rm -f $DESTGR/usr/$LIBDIR/python?.?/site-packages/curses/
+rm -f $DESTGR/usr/$LIBDIR/python?.?/site-packages/pydoc.py
+
+
# this is only for the minimal second stage
echo "Cleaning ramdisk install images..."
rm -rf $DEST/usr/lib/anaconda-runtime