Skip to content

Commit 177bcb3

Browse files
authored
Merge pull request #37 from cityofships/add-cbs-element
Add CentOS Kmods SIG element
2 parents 01b7432 + 1954598 commit 177bcb3

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
================
2+
CentOS Kmods SIG
3+
================
4+
5+
Enables CentOS Kmods SIG repository for CentOS Stream. It aims on providing
6+
kernel modules currently not available in main distribution.
7+
8+
* ``DIB_CENTOS_KMODS_PKGLIST`` A list of packages to install from Kmods SIG repository.
9+
Default is none.
10+
* ``DIB_CENTOS_KMODS_TESTING`` Whether repository containing test packages
11+
should be enabled (1) instead of released ones. Default is disabled (0).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash -lv
2+
3+
if [[ ${DISTRO_NAME} == centos && -n ${DIB_CENTOS_KMODS_PKGLIST} ]]; then
4+
dnf install -y ${DIB_CENTOS_KMODS_PKGLIST}
5+
else
6+
echo "You must set the package list: \"$DIB_CENTOS_KMODS_PKGLIST\"."
7+
exit 1
8+
fi
9+
10+
exit 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dnf-plugins-core:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash -lv
2+
3+
case "$DISTRO_NAME" in
4+
centos* )
5+
6+
dnf -y install centos-release-kmods-rebuild
7+
8+
if [ ${DIB_CENTOS_KMODS_TESTING:-0} -eq 1 ]; then
9+
dnf config-manager --set-disabled centos-kmods
10+
dnf config-manager --set-enabled centos-kmods-testing
11+
dnf config-manager --set-disabled centos-kmods-rebuild
12+
dnf config-manager --set-enabled centos-kmods-rebuild-testing
13+
fi
14+
15+
;;
16+
*)
17+
echo "Distro \"$DISTRO_NAME\" is not supported"
18+
exit 1
19+
;;
20+
esac
21+
22+
exit 0

0 commit comments

Comments
 (0)