osresearch / safeboot

Scripts to slightly improve the security of the Linux boot process with UEFI Secure Boot and TPM support
https://safeboot.dev/
GNU General Public License v2.0
268 stars 28 forks source link

Determine the correct partition number of the EFI system partition #130

Closed carlozanella closed 2 years ago

carlozanella commented 3 years ago

Currently the EFI system partition is assumed to be the first partition of the device. This needn't be the case.

This PR determines and uses the correct partition number of the EFI partition.

osresearch commented 2 years ago

That's a good observation. Thanks for the PR and sorry about the merge delay.