Browse Source

Merge "Strip some excess from the centos dib image"

changes/36/743536/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
597955d366
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      dib/ironic-python-agent-ramdisk/cleanup.d/99-ramdisk-create
  2. +1
    -0
      dib/ironic-python-agent-ramdisk/post-install.d/99-remove-extra-packages

+ 1
- 0
dib/ironic-python-agent-ramdisk/cleanup.d/99-ramdisk-create View File

@@ -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 \


+ 1
- 0
dib/ironic-python-agent-ramdisk/post-install.d/99-remove-extra-packages View File

@@ -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…
Cancel
Save