b960614c9c
python3 is a hard requirement of dnf so can't be removed [1] grubby is also required for kernel installs on Fedora. For too much detail see I1a6e45d04755515286b3d49f8280c16b527e2f48; but the kernel, via dracut, now has this as a "recommends" due to people removing it and making unbootable systems. [1] http://logs.openstack.org/76/248976/2/check/gate-dib-dsvm-functests-devstack-f21/734c8bd/console.html Change-Id: I5867ecd57834eece9477aa9ea4b8bdd70e238084
32 lines
781 B
Bash
Executable File
32 lines
781 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 sudo 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
|