diff --git a/Containerfile b/Containerfile index ced1acca..44b760a8 100644 --- a/Containerfile +++ b/Containerfile @@ -14,6 +14,7 @@ RUN /tmp/build-prep.sh RUN /tmp/build-ublue-os-akmods-key.sh RUN /tmp/build-kmod-v4l2loopback.sh +RUN /tmp/build-kmod-wl.sh RUN mkdir /var/cache/rpms && \ for RPM in $(find /var/cache/akmods/ -type f -name \*.rpm); do \ diff --git a/build-kmod-wl.sh b/build-kmod-wl.sh new file mode 100755 index 00000000..1e7a6254 --- /dev/null +++ b/build-kmod-wl.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -oeux pipefail + + +ARCH="$(rpm -E '%_arch')" +KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +RELEASE="$(rpm -E '%fedora')" + + +### BUILD wl (succeed or fail-fast with debug output) +rpm-ostree install \ + akmod-wl-*.fc${RELEASE}.${ARCH} +akmods --force --kernels "${KERNEL}" --kmod wl +modinfo /usr/lib/modules/${KERNEL}/extra/wl/wl.ko.xz > /dev/null \ +|| (find /var/cache/akmods/wl/ -name \*.log -print -exec cat {} \; && exit 1)