Skip to content

Commit 61a167b

Browse files
committed
redhat: add downstream SBAT for UKI addons
JIRA: https://issues.redhat.com/browse/RHEL-92594 Upstream Status: RHEL-Only Even though UKI addons are not binaries, it is always better to have a SBAT version that tracks the downstream build, just in case we figure there are bugs in the kernel command line. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
1 parent 415ff73 commit 61a167b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

redhat/kernel.spec.template

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2382,6 +2382,12 @@ BuildKernel() {
23822382
EOF
23832383
)
23842384

2385+
ADDONS_SBAT=$(cat <<- EOF
2386+
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
2387+
kernel-uki-virt-addons.$SBATsuffix,1,Red Hat,kernel-uki-virt-addons,$KernelVer,mailto:secalert@redhat.com
2388+
EOF
2389+
)
2390+
23852391
KernelUnifiedImageDir="$RPM_BUILD_ROOT/lib/modules/$KernelVer"
23862392
KernelUnifiedImage="$KernelUnifiedImageDir/$InstallName-virt.efi"
23872393

@@ -2401,7 +2407,7 @@ BuildKernel() {
24012407

24022408
KernelAddonsDirOut="$KernelUnifiedImage.extra.d"
24032409
mkdir -p $KernelAddonsDirOut
2404-
python3 %{SOURCE151} %{SOURCE152} $KernelAddonsDirOut virt %{primary_target} %{_target_cpu}
2410+
python3 %{SOURCE151} %{SOURCE152} $KernelAddonsDirOut virt %{primary_target} %{_target_cpu} "$ADDONS_SBAT"
24052411

24062412
%if %{signkernel}
24072413

0 commit comments

Comments
 (0)