Skip to content

Conversation

@jsetje
Copy link
Collaborator

@jsetje jsetje commented May 19, 2022

preserve_sbat_uefi_variable() shoud really deal with the sbat
metadata version as a numerical value that could gain more digits.

It also needs to only compare the datestamp since the actual
metadata can grow and shrink

Signed-off-by: Jan Setje-Eilers Jan.SetjeEilers@oracle.com

@jsetje jsetje marked this pull request as draft May 19, 2022 15:03
@jsetje
Copy link
Collaborator Author

jsetje commented May 19, 2022

I should probably just use pointer match in place of the substitution and strlen()s. I'll update as soon as I get through re-testing.
Also fixing a minor bug in the test code.

@jsetje jsetje marked this pull request as ready for review May 19, 2022 16:34
@jsetje jsetje marked this pull request as draft May 19, 2022 16:43
@jsetje
Copy link
Collaborator Author

jsetje commented May 19, 2022

And now I got my test system into a strange state. Likely just bad test metadata, but need to confirm.
Edit: Confirmed as pilot error. The system works as designed. So many ways to shoot yourself in the foot with this.

@jsetje jsetje marked this pull request as ready for review May 19, 2022 16:51
preserve_sbat_uefi_variable() shoud really deal with the sbat
metadata version as a numerical value that could gain more digits.

It also needs to only compare the datestamp since the actual
metadata can grow and shrink

Signed-off-by: Jan Setje-Eilers <Jan.SetjeEilers@oracle.com>
@vathpela vathpela merged commit 759f061 into rhboot:main May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants