Merge "Strip some excess from the centos dib image"
This commit is contained in:
commit
597955d366
dib/ironic-python-agent-ramdisk
@ -38,6 +38,7 @@ sudo find . -xdev \
|
||||
-path './usr/lib/locale/*' -prune -o \
|
||||
-path './usr/share/doc/*' -prune -o \
|
||||
-path './usr/share/man/*' -prune -o \
|
||||
-path './usr/share/GeoIP/*' -prune -o \
|
||||
-path './usr/share/info/*' -prune -o \
|
||||
-path './usr/share/licenses/*' -prune -o \
|
||||
-path './usr/share/locale/*' -prune -o \
|
||||
|
@ -11,6 +11,7 @@ rm -rf /tmp/ironic-python-agent
|
||||
# TODO(dtantsur): implement the same for debian-based systems
|
||||
case "$DISTRO_NAME" in
|
||||
fedora|centos|centos7|rhel|rhel7)
|
||||
${YUM:-yum} remove -y postfix gcc make
|
||||
${YUM:-yum} clean all
|
||||
# Rebuilding the rpm database after removing packages will reduce
|
||||
# its size
|
||||
|
Loading…
x
Reference in New Issue
Block a user