]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.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)
committerGitHub <noreply@github.com>
Tue, 22 Dec 2020 04:14:32 +0000 (20:14 -0800)
commitaf9593903ef287bc1c0cb1829f0863773ce93c78
tree55a404b5cf841693722c3690d5ad81c1fa362248
parent7bbe563a0eee83265787d15bc23ba4d55f45c30e
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