File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 33======
44
55Enables 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).
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments