Skip to content

Commit 01b7432

Browse files
authored
Merge pull request #35 from cityofships/elrepo-kernel-ml
Add support for enabling elrepo-kernel repository
2 parents a31518f + f2c4ff9 commit 01b7432

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

elements/elrepo/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ ELRepo
33
======
44

55
Enables ELRepo, a community based repository for Enterprise Linux Packages with a focus
6-
on drivers for hardware such as network interface cards.
6+
on drivers for hardware such as network interface cards. RHEL/CentOS versions pior to 8
7+
are not supported.
78

89
* ``DIB_ELREPO_PKGLIST`` A list of packages to install from ELRepo.
910
Default is none.
11+
* ``DIB_ELREPO_KERNEL`` Whether elrepo-kernel repository containing kernel-ml packages
12+
should be enabled (1) or disabled. Default is disabled (0).

elements/elrepo/pre-install.d/01-elrepo

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ case "$DISTRO_NAME" in
44
centos* | rhel*)
55
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
66
dnf install -y https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
7+
8+
if [ ${DIB_ELREPO_KERNEL:-0} -eq 1 ]; then
9+
10+
rpm -q dnf-plugins-core || dnf install -y dnf-plugins-core
11+
dnf config-manager --set-enabled "elrepo-kernel"
12+
13+
fi
14+
715
;;
816
*)
917
echo "Distro \"$DISTRO_NAME\" is not supported"

0 commit comments

Comments
 (0)