diskimage-builder/elements/redhat-common/finalise.d/01-clean-old-kernels

12 lines
163 B
Text
Raw Normal View History

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
install-packages yum-utils
package-cleanup --oldkernels -y --count=1