mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
7e42505083
These new scripts are streamlined such that, for example, "contrib/mkimage/debootstrap" is _only_ responsible for filling a directory with the results of running debootstrap, and it can accept any arbitrary arguments. Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
28 lines
610 B
Bash
Executable file
28 lines
610 B
Bash
Executable file
#!/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
|
|
#rm -rf usr/share/cracklib
|
|
# 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
|
|
)
|