Fix kernel version detection

This commit is contained in:
Jarno Rankinen 2024-06-05 19:17:40 +03:00
parent 5bae6297e4
commit 58672fa8d3
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set -ouex pipefail
RELEASE="$(rpm -E %fedora)"
ZFS_KERNEL_VERSION="$(find /tmp/rpms/kmods/zfs/ -name "kmod-zfs*.rpm" | sed 's/.*\/kmod-zfs-//; s/\.fc.*$//')"
ZFS_KERNEL_VERSION="$(find /tmp/rpms/kmods/zfs/ -name "kmod-zfs*.rpm" ! -name "*devel*" | sed 's/.*\/kmod-zfs-//; s/\.fc.*$//g' | head -1)"
### Install packages