canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 50 forks source link

Add UEFI Secure Boot with unsigned kernel case (New) #1440

Closed baconYao closed 2 months ago

baconYao commented 2 months ago

Description

Currently, for secure boot coverage, Checkbox only has miscellanea/secure_boot_mode to check secure boot is enabled from System level.

However, based on the responsibility of publishing image, Canonical is responsible for the signed shim, grub and kernel. Therefore, I add a manual case to replace signed kernel with unsigned kernel to prove the function of UEFI Secure Boot is working as expected.

This is raised from Boashan Project but the testing method is generic. So Canonical QA can follow the step to verify UEFI Secure Boot feature if a project supports UEFI firmware on Classic image.

Resolved issues

Documentation

Tests

Screenshot from 2024-08-30 10-04-30

Screenshot from 2024-08-30 10-04-50

Screenshot from 2024-08-29 15-06-03

baconYao commented 2 months ago

@hanhsuan @stanley31huang I revert the commit to fix the issue of 80 length limitation. We should file another PR to fix it.