rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
282 stars 49 forks source link

[Backport v1.1.x] Do not return error for efi.ReadLoadOption #2093

Closed frelon closed 1 month ago

frelon commented 1 month ago

When encountering a boot-entry for a device-path that go-efilib is unable to parse we should just skip that entry instead of erroring out.

Backporting this manually and minimally since cherry-picking 2e56a099b had conflicts.

Signed-off-by: Fredrik Lönnegren fredrik.lonnegren@suse.com

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Please upload report for BASE (v1.1.x@c20fa28). Learn more about missing BASE report.

Files Patch % Lines
pkg/efi/manager.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## v1.1.x #2093 +/- ## ========================================= Coverage ? 75.34% ========================================= Files ? 67 Lines ? 6814 Branches ? 0 ========================================= Hits ? 5134 Misses ? 1310 Partials ? 370 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.