Skip to content

Commit

Permalink
zfs-kmods: install to /lib/modules instead of /usr/lib/modules
Browse files Browse the repository at this point in the history
Before this patch, dracut wouldn't find zfs.ko for inclusion in
initramfs. This was caused by the packages installing in to
/lib/modules instead of /usr/lib/modules.  Correcting this allows
dracut to do the right thing, even without

    # /etc/dracut.conf
    add_drivers+=" zfs "

Notably, rpm/redhat/zfs-kmod.spec.in does not contain the definition of
the `prefix` macro that this commit removes in the generic kmod spec.
And https://rpmfusion.org/Packaging/KernelModules/Kmods2 does not
mention `prefix` at all.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Christian Schwarz <[email protected]>
Closes #11381
  • Loading branch information
problame authored Dec 22, 2020
1 parent 7bbe563 commit af95939
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rpm/generic/zfs-kmod.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ BuildRequires: %{_bindir}/kmodtool
%global __global_ldflags %{nil}
%endif

%if 0%{?fedora} >= 17
%define prefix /usr
%endif

# Kmodtool does its magic here. A patched version of kmodtool is shipped
# with the source rpm until kmod development packages are supported upstream.
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=2714
Expand Down

0 comments on commit af95939

Please sign in to comment.