diff --git a/scripts/rebuild-rhel-kernel-rpm b/scripts/rebuild-rhel-kernel-rpm index c3040066a..e4a96c1d7 100755 --- a/scripts/rebuild-rhel-kernel-rpm +++ b/scripts/rebuild-rhel-kernel-rpm @@ -40,6 +40,7 @@ scriptdir="$(dirname "$0")" if [ "${scriptdir:0:1}" != "/" ]; then scriptdir="$PWD/${scriptdir}" fi +scriptdir="${scriptdir%/.}" source "${scriptdir}/rhel-rpm-functions" scst_dir="$(dirname "$scriptdir")" downloaddir=$HOME/software/downloads @@ -144,7 +145,31 @@ fi log "Installing prerequisites" if $install_prerequisites; then - sudo yum install -y -q asciidoc binutils-devel elfutils-libelf-devel hmaccalc ncurses-devel newt-devel patchutils 'perl(ExtUtils::Embed)' python-devel redhat-rpm-config rpmdevtools rng-tools rpm-build unifdef wget xmlto yum-utils zlib-devel + for p in \ +asciidoc \ +audit-libs-devel \ +binutils-devel \ +elfutils-devel \ +elfutils-libelf-devel \ +hmaccalc \ +ncurses-devel \ +newt-devel \ +patchutils \ +numactl-devel \ +pciutils-devel \ +'perl(ExtUtils::Embed)' \ +pesign \ +python-devel \ +redhat-rpm-config \ +rng-tools \ +rpm-build \ +rpmdevtools \ +unifdef \ +wget \ +xmlto \ +yum-utils \ +zlib-devel \ +; do sudo yum install -y -q "$p"; done fi rc=$?; if [ $rc != 0 ]; then exit $rc; fi