HomeFreeBSD

fix: preserve linux kmod signature in zfs-kmod rpm spec

Description

fix: preserve linux kmod signature in zfs-kmod rpm spec

This change provides rpm spec macros to sign the zfs and spl kmods as
the final step after the %install scriptlet. This is needed since the
find-debuginfo.sh script strips out debug symbols plus signatures.

Kernel module signing only occurs when the required files are present
as typically required in the Linux source tree:

  • certs/signing_key.pem
  • certs/signing_key.x509

The method for overriding the default __spec_install_post macro is
inspired by (and largely copied from) the Fedora kernel.spec.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Benjamin Sherman <benjamin@holyarmy.org>
Closes #15744

Details

Provenance
Benjamin Sherman <benjamin@holyarmy.org>Authored on Jan 12 2024, 8:33 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 29 2024, 10:53 PM
Parents
rG4db88c37cc4e: fix(mount): do not truncate shares not zfs mount
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG509526ad2103: fix: preserve linux kmod signature in zfs-kmod rpm spec (authored by Benjamin Sherman <benjamin@holyarmy.org>).Jan 29 2024, 10:53 PM