|
|
|
@ -107,8 +107,8 @@ find %{buildroot} -name \*.ko -type f | xargs --no-run-if-empty %{__strip} --str
|
|
|
|
|
# Sign the modules(s)
|
|
|
|
|
%if %{?_with_modsign:1}%{!?_with_modsign:0}
|
|
|
|
|
# If the module signing keys are not defined, define them here.
|
|
|
|
|
%{!?privkey: %define privkey %{_sysconfdir}/pki/SECURE-BOOT-KEY.priv}
|
|
|
|
|
%{!?pubkey: %define pubkey %{_sysconfdir}/pki/SECURE-BOOT-KEY.der}
|
|
|
|
|
%{!?privkey: %define privkey %{_sysconfdir}/pki/kmod/msvsphere_kmod.priv}
|
|
|
|
|
%{!?pubkey: %define pubkey %{_sysconfdir}/pki/kmod/msvsphere_kmod.pem}
|
|
|
|
|
for module in $(find %{buildroot} -type f -name \*.ko);
|
|
|
|
|
do %{_usrsrc}/kernels/%{kmod_kernel_version}.%{_arch}/scripts/sign-file \
|
|
|
|
|
sha256 %{privkey} %{pubkey} $module;
|
|
|
|
|