Fix kernel version detection
This commit is contained in:
parent
5bae6297e4
commit
58672fa8d3
2
build.sh
2
build.sh
|
@ -4,7 +4,7 @@ set -ouex pipefail
|
||||||
|
|
||||||
RELEASE="$(rpm -E %fedora)"
|
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
|
### Install packages
|
||||||
|
|
Loading…
Reference in New Issue