Skip to content

Commit d2cf035

Browse files
Use rpm-sign for kernel module signing
1 parent 9a74b4c commit d2cf035

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build_node/builders/base_rpm_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# 'r' modifier and the number of slashes is intentional, modify very carefully
5959
# or don't touch this at all
6060
MODSIGN_CONTENT = r"""
61-
%__brp_kmod_sign %{expand:[ ! -d "$RPM_BUILD_ROOT/lib/modules/" ] || find "$RPM_BUILD_ROOT/lib/modules/" -type f -name '*.ko' -print0 | xargs -0 -r -I{} /usr/local/bin/modsign %{modsign_os} {} }
61+
%__brp_kmod_sign %{expand:[ ! -d "$RPM_BUILD_ROOT/lib/modules/" ] || find "$RPM_BUILD_ROOT/lib/modules/" -type f -name '*.ko' -print0 | xargs -0 -r -I{} /usr/bin/rpm-sign --key %{modsign_os} --lkmsign {} --output {} }
6262
%__brp_kmod_post_sign_process %{expand:[ ! -d "$RPM_BUILD_ROOT/lib/modules/" ] || find "$RPM_BUILD_ROOT/lib/modules/" -type f -name '*.ko.*' -delete}
6363
%__spec_install_post \\
6464
%{?__debug_package:%{__debug_install_post}} \\

0 commit comments

Comments
 (0)