HomeFreeBSD

Fix %post and %postun generation in kmodtool

Description

Fix %post and %postun generation in kmodtool

During zfs-kmod RPM build, $(uname -r) gets unintentionally evaluated on
the build host, once and for all. It should be evaluated during the
execution of the scriptlets on the installation host. Escaping the $
character avoids evaluating it during build.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
Closes #8866

Details

Provenance
Samuel VERSCHELDE <stormi-github@ylix.fr>Authored on Jun 10 2019, 4:06 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 10 2019, 4:06 PM
Parents
rG893a6d62c189: Allow metaslab to be unloaded even when not freed from
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG01d1e88b1aad: Fix %post and %postun generation in kmodtool (authored by Samuel VERSCHELDE <stormi-github@ylix.fr>).Jun 10 2019, 4:06 PM