]> git.proxmox.com Git - mirror_zfs.git/commit
zfs-kmods: install to /lib/modules instead of /usr/lib/modules
authorChristian Schwarz <me@cschwarz.com>
Tue, 22 Dec 2020 04:14:32 +0000 (04:14 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Dec 2020 22:35:47 +0000 (14:35 -0800)
commitafaf9414ff2b17dcf2c08bbdf2b8fedf358ff607
tree9bc509b6bd7480f52a62875823215afe16a60d87
parentcee725c9bd73db3aa6ecc0d511648cfa5005dab6
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 <behlendorf1@llnl.gov>
Signed-off-by: Christian Schwarz <me@cschwarz.com>
Closes #11381
rpm/generic/zfs-kmod.spec.in