diff --git a/Containerfile b/Containerfile index 4492beb2..0fccea12 100644 --- a/Containerfile +++ b/Containerfile @@ -19,6 +19,7 @@ RUN /tmp/build-ublue-os-akmods-addons.sh RUN /tmp/build-kmod-v4l2loopback.sh RUN /tmp/build-kmod-xpadneo.sh RUN /tmp/build-kmod-steamdeck.sh +RUN /tmp/build-kmod-gcadapter_oc.sh RUN mkdir -p /var/cache/rpms/{kmods,ublue-os} RUN cp /tmp/ublue-os-akmods-addons/rpmbuild/RPMS/noarch/ublue-os-akmods-addons*.rpm \ diff --git a/build-kmod-gcadapter_oc.sh b/build-kmod-gcadapter_oc.sh new file mode 100755 index 00000000..b3a6d0d3 --- /dev/null +++ b/build-kmod-gcadapter_oc.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -oeux pipefail + +wget https://copr.fedorainfracloud.org/coprs/kylegospo/gcadapter_oc-dkms/repo/fedora-$(rpm -E %fedora)/kylegospo-gcadapter_oc-dkms-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-gcadapter_oc-dkms.repo + +ARCH="$(rpm -E '%_arch')" +KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +RELEASE="$(rpm -E '%fedora')" + +rpm-ostree install \ + akmod-gcadapter_oc-*.fc${RELEASE}.${ARCH} +akmods --force --kernels "${KERNEL}" --kmod gcadapter_oc +modinfo /usr/lib/modules/${KERNEL}/extra/gcadapter_oc/gcadapter_oc.ko.xz > /dev/null \ +|| (find /var/cache/akmods/gcadapter_oc/ -name \*.log -print -exec cat {} \; && exit 1) + +rm -f /etc/yum.repos.d/_copr_kylegospo-gcadapter_oc-dkms.repo