2015-08-06 11:43:10 +00:00
|
|
|
#!/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
|
|
|
|
|
2015-11-25 03:31:50 +00:00
|
|
|
_remove_yum=''
|
2015-08-06 11:43:10 +00:00
|
|
|
if [ $DIB_RELEASE -ge 22 ]; then
|
2015-11-25 03:31:50 +00:00
|
|
|
# if we are on F22, we can remove yum if there, because it has
|
|
|
|
# been superseeded by dnf
|
|
|
|
_remove_yum='yum'
|
2015-08-06 11:43:10 +00:00
|
|
|
fi
|
|
|
|
|
2015-11-25 03:31:50 +00:00
|
|
|
install-packages -e kernel-debug-devel gcc fedora-logos \
|
2016-04-21 04:52:31 +00:00
|
|
|
rsync pykickstart \
|
2016-02-16 02:38:24 +00:00
|
|
|
make genisoimage tcpdump \
|
2017-07-21 00:49:26 +00:00
|
|
|
man-db kbd-misc \
|
2015-11-25 03:31:50 +00:00
|
|
|
plymouth cronie ${_remove_yum}
|
|
|
|
|
|
|
|
${YUM:-yum} clean all
|
|
|
|
|
2015-08-06 11:43:10 +00:00
|
|
|
# Rebuilding the rpm database after removing packages will reduce
|
|
|
|
# its size
|
|
|
|
rpm --rebuilddb
|
|
|
|
|
|
|
|
fi
|