diskimage-builder/elements/redhat-common/finalise.d/01-clean-old-kernels.sh
Ben Nemec ed15edf165 Add redhat-common element
Add an element intended for use in both Fedora and RHEL.  This
allows them to share install steps that are common to both.

Change-Id: Ie4e820a7b777b8701514351b1f802cfe57c3812e
2014-03-17 16:14:36 -05:00

6 lines
83 B
Bash
Executable File

#!/bin/bash
install-packages yum-utils
package-cleanup --oldkernels -y --count=1