Skip to content

Commit

Permalink
Changed kernel modules detection
Browse files Browse the repository at this point in the history
  • Loading branch information
t0fik committed Aug 26, 2018
1 parent e482444 commit 6ead70b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/zmogrify
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion zfs-rootfs.spec
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -40,6 +40,9 @@ done
%{_unitdir}/*/*.conf

%changelog
* Sun Aug 26 2018 Jerzy Drozdz <[email protected]> - 1.3.5-1
- Changed kernel modules detection

* Sun Aug 26 2018 Jerzy Drozdz <[email protected]> - 1.3.4-1
- Fixed typo in zmogrify

Expand Down

0 comments on commit 6ead70b

Please sign in to comment.