2014-05-01 17:38:44 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rootfsDir="$1"
|
|
|
|
shift
|
|
|
|
|
|
|
|
(
|
|
|
|
cd "$rootfsDir"
|
|
|
|
|
|
|
|
# effectively: febootstrap-minimize --keep-zoneinfo --keep-rpmdb --keep-services "$target"
|
|
|
|
# locales
|
|
|
|
rm -rf usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
|
|
|
|
# docs
|
|
|
|
rm -rf usr/share/{man,doc,info,gnome/help}
|
|
|
|
# cracklib
|
2014-06-03 06:41:32 -04:00
|
|
|
rm -rf usr/share/cracklib
|
2014-05-01 17:38:44 -04:00
|
|
|
# i18n
|
|
|
|
rm -rf usr/share/i18n
|
|
|
|
# yum cache
|
|
|
|
rm -rf var/cache/yum
|
|
|
|
mkdir -p --mode=0755 var/cache/yum
|
|
|
|
# sln
|
|
|
|
rm -rf sbin/sln
|
|
|
|
# ldconfig
|
|
|
|
#rm -rf sbin/ldconfig
|
|
|
|
rm -rf etc/ld.so.cache var/cache/ldconfig
|
|
|
|
mkdir -p --mode=0755 var/cache/ldconfig
|
|
|
|
)
|