Remove kernel abiname in sign_rootfs-post-scripts

When kernel is upgraded to 6.6, its abiname is changed from
5.10.0-6 to 6.6.0-1.
Update sign_rootfs-post-scripts to remove its dependency on
kernel abiname so that we don't need change it any more in next
upgrading.

Test plan:
 PASS: The signing build process is verified.
 PASS: The rt/std secure boot processes on target are verified.

Story: 2011000
Task: 49617

Change-Id: I5f68b957e58c1d4c75dbb647743e3b884e2bea5a
Signed-off-by: Li Zhou <li.zhou@windriver.com>
This commit is contained in:
Li Zhou 2024-02-21 19:45:32 -08:00
parent 6e1769be69
commit 5b2d40b7bf

View File

@ -23,10 +23,12 @@
LOCKD_FILE=LockDown.efi LOCKD_FILE=LockDown.efi
LOCKD_PATH=${IMAGE_ROOTFS}/boot/efi/EFI/BOOT/ LOCKD_PATH=${IMAGE_ROOTFS}/boot/efi/EFI/BOOT/
LOCKD_INIT=${IMAGE_ROOTFS}/usr/lib/efitools/x86_64-linux-gnu/LockDown.efi LOCKD_INIT=${IMAGE_ROOTFS}/usr/lib/efitools/x86_64-linux-gnu/LockDown.efi
KERNEL_RT_FILE=vmlinuz-5.10.0-6-rt-amd64
KERNEL_RT_PATH=${IMAGE_ROOTFS}/boot/ KERNEL_RT_PATH=${IMAGE_ROOTFS}/boot/
KERNEL_FILE=vmlinuz-5.10.0-6-amd64 KERNEL_RT_FILE=$(ls ${KERNEL_RT_PATH}/vmlinuz-*[0-9]-rt-amd64)
KERNEL_RT_FILE=${KERNEL_RT_FILE##*/}
KERNEL_PATH=${IMAGE_ROOTFS}/boot/ KERNEL_PATH=${IMAGE_ROOTFS}/boot/
KERNEL_FILE=$(ls ${KERNEL_PATH}/vmlinuz-*[0-9]-amd64)
KERNEL_FILE=${KERNEL_FILE##*/}
SSH_OPTION_NOCHECKING="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" SSH_OPTION_NOCHECKING="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
REQUEST=$(ssh ${SSH_OPTION_NOCHECKING} ${SIGNING_SERVER} sudo /opt/signing/sign-debian.sh -r) REQUEST=$(ssh ${SSH_OPTION_NOCHECKING} ${SIGNING_SERVER} sudo /opt/signing/sign-debian.sh -r)
UPLOAD_PATH=${REQUEST#*Upload: } UPLOAD_PATH=${REQUEST#*Upload: }