I've successfully tested and verified this on kinetic and jammy as part of LP#1996069. Now tested on focal on top:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal $ uname -a Linux hwe0008 5.4.0-136-generic #153-Ubuntu SMP Thu Nov 24 15:57:18 UTC 2022 s390x s390x s390x GNU/Linux ubuntu@hwe0008:~$ ls check_sb_trailer.sh $ sudo ./check_sb_trailer.sh /boot/vmlinuz-5.4.0-136-generic Checking secure boot trailer of file /boot/vmlinuz-5.4.0-136-generic * Read 32 bytes at offset 0091f218: 000002107e4d6f64756c65207369676e617475726520617070656e6465647e0a * Found signature marker - skipping 568 bytes * Read 32 bytes at offset 0091efe0: 000000000000000000000000000000000000000000000000000000207a49504c * Success - Linux kernel trailer found $
I'm adjusting the tags accordingly ...
I've successfully tested and verified this on kinetic and jammy as part of LP#1996069.
Now tested on focal on top:
$ lsb_release -a sb_trailer. sh /boot/vmlinuz- 5.4.0-136- generic 5.4.0-136- generic d6f64756c652073 69676e617475726 520617070656e64 65647e0a 000000000000000 000000000000000 000000000000020 7a49504c
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
$ uname -a
Linux hwe0008 5.4.0-136-generic #153-Ubuntu SMP Thu Nov 24 15:57:18 UTC 2022 s390x s390x s390x GNU/Linux
ubuntu@hwe0008:~$ ls
check_sb_trailer.sh
$ sudo ./check_
Checking secure boot trailer of file /boot/vmlinuz-
* Read 32 bytes at offset 0091f218:
000002107e4
* Found signature marker - skipping 568 bytes
* Read 32 bytes at offset 0091efe0:
00000000000
* Success - Linux kernel trailer found
$
I'm adjusting the tags accordingly ...