45628993e8
"ironic-agent" element is currently removing sudo, which breaks other elements such as devuser. There appears to be no security or other reason to do this, it's just the way it has always been. Leave sudo in as it is considered part of the base cloud images. Change-Id: Ida9b1885f745146071e4b2d85ae59341ac85d5c8 Closes-Bug: #1572486
31 lines
776 B
Bash
Executable file
31 lines
776 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# TODO(lucasagomes): optimize the ramdisk for other OSs
|
|
if [ $DISTRO_NAME = 'fedora' ] ; then
|
|
|
|
_remove_yum=''
|
|
if [ $DIB_RELEASE -ge 22 ]; then
|
|
# if we are on F22, we can remove yum if there, because it has
|
|
# been superseeded by dnf
|
|
_remove_yum='yum'
|
|
fi
|
|
|
|
install-packages -e kernel-debug-devel gcc fedora-logos \
|
|
rsync pykickstart \
|
|
make genisoimage tcpdump \
|
|
man-db policycoreutils kbd-misc \
|
|
plymouth cronie ${_remove_yum}
|
|
|
|
${YUM:-yum} clean all
|
|
|
|
# Rebuilding the rpm database after removing packages will reduce
|
|
# its size
|
|
rpm --rebuilddb
|
|
|
|
fi
|