diff --git a/build-kmod-v4l2loopback.sh b/build-kmod-v4l2loopback.sh index c6dbd8cb..963cb41d 100755 --- a/build-kmod-v4l2loopback.sh +++ b/build-kmod-v4l2loopback.sh @@ -12,8 +12,8 @@ RELEASE="$(rpm -E '%fedora')" ### BUILD v4l2loopbak (succeed or fail-fast with debug output) rpm-ostree install \ akmod-v4l2loopback-*.fc${RELEASE}.${ARCH} -V4L2LOOP_AKMOD_VERSION="$(basename "$(rpm -q "akmod-v4l2loopback" --queryformat '%{VERSION}-%{RELEASE}.${ARCH}')" ".fc${RELEASE%%.*}")" +V4L2LOOP_AKMOD_VERSION="$(basename "$(rpm -q "akmod-v4l2loopback" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" ".fc${RELEASE%%.*}")" akmods --force --kernels "${KERNEL}" --kmod "v4l2loopback" -modinfo /usr/lib/modules/${KERNEL}/extra/v4l2loopback/v4l2loopback.ko.xz > /dev/null \ -|| (cat /var/cache/akmods/v4l2loopback/${V4L2LOOP_AKMOD_VERSION}-for-${KERNEL}.failed.log && exit 1) +modinfo "/usr/lib/modules/${KERNEL}/extra/v4l2loopback/v4l2loopback.ko.xz" > /dev/null \ +|| (cat "/var/cache/akmods/v4l2loopback/${V4L2LOOP_AKMOD_VERSION}-for-${KERNEL}.failed.log" && exit 1)