File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -714,8 +714,9 @@ if [[ $SECURE_UPGRADE_MODE == 'dev' || $SECURE_UPGRADE_MODE == "prod" ]]; then
714714 -k ${FILESYSTEM_ROOT} /usr/lib/modules
715715
716716 # verifying vmlinuz file.
717- sudo ./scripts/secure_boot_signature_verification.sh -e $FILESYSTEM_ROOT /boot/vmlinuz-${LINUX_KERNEL_VERSION} -${CONFIGURED_ARCH} \
718- -c $SECURE_UPGRADE_SIGNING_CERT
717+ sudo ./scripts/secure_boot_signature_verification.sh -e $FILESYSTEM_ROOT /boot/vmlinuz-${LINUX_KERNEL_VERSION} +deb13-sonic-${CONFIGURED_ARCH} \
718+ -c $SECURE_UPGRADE_SIGNING_CERT \
719+ -k $FILESYSTEM_ROOT
719720 fi
720721 echo " Secure Boot support build stage: END."
721722fi
Original file line number Diff line number Diff line change @@ -54,9 +54,8 @@ if [ ! -f ${PEM_PRIVATE_KEY} ]; then
5454 exit 1
5555fi
5656
57- kbuild_ver_major=" $( cut -d ' .' -f 1 <<< " $LINUX_KERNEL_VERSION" ) " ." $( cut -d ' .' -f 2 <<< " $LINUX_KERNEL_VERSION" ) "
5857if [ -z ${LOCAL_SIGN_FILE} ]; then
59- LOCAL_SIGN_FILE=" /usr/lib/linux-kbuild-${kbuild_ver_major } /scripts/sign-file"
58+ LOCAL_SIGN_FILE=" /usr/lib/linux-kbuild-${LINUX_KERNEL_VERSION } /scripts/sign-file"
6059fi
6160
6261if [ ! -f ${LOCAL_SIGN_FILE} ]; then
@@ -66,7 +65,7 @@ if [ ! -f ${LOCAL_SIGN_FILE} ]; then
6665fi
6766
6867if [ -z ${LOCAL_EXTRACT_CERT} ]; then
69- LOCAL_EXTRACT_CERT=" /usr/lib/linux-kbuild-${kbuild_ver_major } /certs/extract-cert"
68+ LOCAL_EXTRACT_CERT=" /usr/lib/linux-kbuild-${LINUX_KERNEL_VERSION } /certs/extract-cert"
7069fi
7170
7271if [ ! -f ${LOCAL_EXTRACT_CERT} ]; then
Original file line number Diff line number Diff line change 100100# # vmlinuz signing
101101# #####################
102102
103- CURR_VMLINUZ=$FS_ROOT /boot/vmlinuz-${LINUX_KERNEL_VERSION} -${CONFIGURED_ARCH}
103+ CURR_VMLINUZ=$FS_ROOT /boot/vmlinuz-${LINUX_KERNEL_VERSION} +deb13-sonic -${CONFIGURED_ARCH}
104104
105105# clean old files
106106clean_file ${CURR_VMLINUZ} -signed
@@ -116,6 +116,6 @@ mv ${CURR_VMLINUZ}-signed ${CURR_VMLINUZ}
116116# ########################
117117# Kernel Modules signing
118118# ########################
119- ./scripts/signing_kernel_modules.sh -l $LINUX_KERNEL_VERSION -c ${PEM_CERT} -p ${PEM_PRIV_KEY} -k ${FS_ROOT} /usr/lib/modules
119+ ./scripts/signing_kernel_modules.sh -l ${ LINUX_KERNEL_VERSION} +deb13 -c ${PEM_CERT} -p ${PEM_PRIV_KEY} -k ${FS_ROOT}
120120
121121echo " $0 signing & verifying EFI files and Kernel Modules DONE"
You can’t perform that action at this time.
0 commit comments