summaryrefslogtreecommitdiffstats
path: root/scripts/upd-instroot
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/upd-instroot')
-rwxr-xr-xscripts/upd-instroot15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 59e8d9bf7..de380a251 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -394,6 +394,7 @@ usr/sbin/ofpath
usr/sbin/ybin
usr/sbin/load_policy
usr/sbin/lvm
+usr/sbin/build-locale-archive
usr/share/anaconda/locale-list
usr/share/anaconda/anaconda.conf
usr/share/terminfo/b/bterm
@@ -894,6 +895,20 @@ LC_ALL=C comm -13 $DESTGR/locales $DESTGR/locales.list | xargs rm -rf
); done
rm -f $DESTGR/locales $DESTGR/locales.list
+# now, create a locale archive and nuke the locale dirs since
+# that ends up taking less space
+for p in $DEST $DESTGR; do
+ echo "Building locale archive"
+ if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then
+ runroot $COMPONENT --onlyone --arch $ARCH "/usr/sbin/chroot $p /usr/sbin/build-locale-archive"
+ else
+ chroot $p /usr/sbin/build-locale-archive
+ fi
+ mv $p/usr/lib/locale/locale-archive $p/usr/lib/locale-archive
+ rm -rf $p/usr/lib/locale/*
+ mv $p/usr/lib/locale-archive $p/usr/lib/locale/locale-archive
+done
+
# Remove unneeded XFree86 modules
rm -rf $DESTGR/usr/X11R6/$LIBDIR/modules/dri
rm -f $DESTGR/usr/X11R6/$LIBDIR/modules/libscanpci.a