Skip to content

Commit 4555e3c

Browse files
problamejsai20
authored andcommitted
zfs-kmods: install to /lib/modules instead of /usr/lib/modules
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 openzfs#11381
1 parent 19911ea commit 4555e3c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rpm/generic/zfs-kmod.spec.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ BuildRequires: %{_bindir}/kmodtool
8888
%global __global_ldflags %{nil}
8989
%endif
9090

91-
%if 0%{?fedora} >= 17
92-
%define prefix /usr
93-
%endif
94-
9591
# Kmodtool does its magic here. A patched version of kmodtool is shipped
9692
# with the source rpm until kmod development packages are supported upstream.
9793
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=2714

0 commit comments

Comments
 (0)