RHEL and Fedora: Fix package installation order.

Closes #238
Also see openzfs/zfs#12822

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
This commit is contained in:
Maurice Zhou
2021-12-14 22:13:56 +01:00
committed by George Melikov
parent 704cb2f8b8
commit 6f435e59e4
2 changed files with 15 additions and 5 deletions

View File

@@ -26,9 +26,15 @@ see below.
dnf install -y https://zfsonlinux.org/fedora/zfs-release$(rpm -E %dist).noarch.rpm dnf install -y https://zfsonlinux.org/fedora/zfs-release$(rpm -E %dist).noarch.rpm
#. Install kernel headers::
dnf install -y kernel-devel
``kernel-devel`` package must be installed before ``zfs`` package.
#. Install ZFS packages:: #. Install ZFS packages::
dnf install -y kernel-devel zfs dnf install -y zfs
#. Load kernel module:: #. Load kernel module::

View File

@@ -62,13 +62,17 @@ package, then the *kernel-devel* and *zfs* packages. Note that it is
important to make sure that the matching *kernel-devel* package is installed important to make sure that the matching *kernel-devel* package is installed
for the running kernel since DKMS requires it to build OpenZFS. for the running kernel since DKMS requires it to build OpenZFS.
For RHEL/CentOS versions 6 and 7 run:: For RHEL/CentOS versions 6 and 7, separately run::
yum install epel-release kernel-devel zfs yum install -y epel-release
yum install -y kernel-devel
yum install -y zfs
And for RHEL/CentOS 8 and newer:: And for RHEL/CentOS 8 and newer, separately run::
dnf install epel-release kernel-devel zfs dnf install -y epel-release
dnf install -y kernel-devel
dnf install -y zfs
.. note:: .. note::
When switching from DKMS to kABI-tracking kmods first uninstall the When switching from DKMS to kABI-tracking kmods first uninstall the