From 4aa28d1d66a7948e98584caf2406970e93f84b87 Mon Sep 17 00:00:00 2001 From: Maurice Zhou Date: Thu, 23 Dec 2021 10:05:34 +0100 Subject: [PATCH] RHEL: switch to kmod Signed-off-by: Maurice Zhou --- .../RHEL 8-based distro Root on ZFS/1-preparation.rst | 2 ++ .../2-system-installation.rst | 2 ++ .../3-system-configuration.rst | 7 ------- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/1-preparation.rst b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/1-preparation.rst index b914151..ff3e255 100644 --- a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/1-preparation.rst +++ b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/1-preparation.rst @@ -43,6 +43,8 @@ Preparation #. Install ZFS packages:: dnf install -y epel-release + dnf config-manager --disable zfs + dnf config-manager --enable zfs-kmod dnf install -y zfs #. Load kernel modules:: diff --git a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst index bf0f127..0421961 100644 --- a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst +++ b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst @@ -244,6 +244,8 @@ System Installation ${RHEL_ZFS_REPO} @core epel-release grub2-efi-x64 grub2-pc-modules \ grub2-efi-x64-modules shim-x64 efibootmgr \ kernel kernel-devel python3-dnf-plugin-post-transaction-actions + dnf config-manager --installroot=/mnt --disable zfs + dnf config-manager --installroot=/mnt --enable zfs-kmod dnf install --installroot=/mnt -y zfs zfs-dracut #. Update zfs repo if a newer release is available:: diff --git a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst index f2e04bd..ca2dae8 100644 --- a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst +++ b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst @@ -94,10 +94,3 @@ System Configuration #. Set root password:: passwd - -#. Build ZFS modules:: - - for directory in /lib/modules/*; do - kernel_version=$(basename $directory) - dkms autoinstall -k $kernel_version - done