diff --git a/src/zmogrify b/src/zmogrify index 985c8b9..b591769 100755 --- a/src/zmogrify +++ b/src/zmogrify @@ -7,12 +7,12 @@ kver=$1 [[ -z "${kver}" ]] && kver=$(uname -r) -if ! dkms status --kernelver ${kver} | grep -q spl 2>/dev/null; then +if ! dkms status --kernelver ${kver} -m spl | grep -q installed 2>/dev/null; then splver=$(ls -d /usr/src/spl*| xargs -I{} basename {}|sort -V|tail -n1|cut -d'-' -f2) dkms install -m spl/$splver --kernelver ${kver} fi -if ! dkms status --kernelver ${kver} | grep -q zfs 2>/dev/null; then +if ! dkms status --kernelver ${kver} -m zfs | grep -q installed 2>/dev/null; then zfsver=$(ls -d /usr/src/zfs*| xargs -I{} basename {}|sort -V|tail -n1|cut -d'-' -f2) dkms install -m zfs/$zfsver --kernelver ${kver} fi diff --git a/zfs-rootfs.spec b/zfs-rootfs.spec index 4feae5d..6458a5c 100644 --- a/zfs-rootfs.spec +++ b/zfs-rootfs.spec @@ -1,5 +1,5 @@ Name: zfs-rootfs -Version: 1.3.4 +Version: 1.3.5 Release: 1%{?dist} Summary: Utils and configs for Linux on ZFS @@ -40,6 +40,9 @@ done %{_unitdir}/*/*.conf %changelog +* Sun Aug 26 2018 Jerzy Drozdz - 1.3.5-1 +- Changed kernel modules detection + * Sun Aug 26 2018 Jerzy Drozdz - 1.3.4-1 - Fixed typo in zmogrify