diff --git a/src/zmogrify b/src/zmogrify index ddbaa9e..e4e8b9f 100755 --- a/src/zmogrify +++ b/src/zmogrify @@ -7,14 +7,14 @@ kver=$1 [[ -z "${kver}" ]] && kver=$(uname -r) -if dkms status --kernelver ${kver} | grep -q spl 2>/dev/null; then +if ! dkms status --kernelver ${kver} | grep -q spl 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 + 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} | grep -q zfs 2>/dev/null; then zfsver=$(ls -d /usr/src/zfs*| xargs -I{} basename {}|sort -V|tail -n1|cut -d'-' -f2) - dkms install -m spl/$zfsver + dkms install -m spl/$zfsver --kernelver ${kver} fi diff --git a/zfs-rootfs.spec b/zfs-rootfs.spec index 12d56d1..cc3578a 100644 --- a/zfs-rootfs.spec +++ b/zfs-rootfs.spec @@ -1,5 +1,5 @@ Name: zfs-rootfs -Version: 1.3.2 +Version: 1.3.3 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.3-1 +- Fixed building zfs modules in zmogrify + * Sat Aug 25 2018 Jerzy Drozdz - 1.3.2-1 - Added checking if zfs modules are present in kernel