File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed
elements/centos-kmods-sig Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 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).
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ dnf-plugins-core :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments