fix: sd-measure dtbauto and hwdids arg parsing
Commit630cf4e7daintroduced `.dtbauto`, but since it's before `.hwdids` commit4c0b7f4250made `dtbauto` the last argument whereas it should have been `hwdids`. Otherwise the code was measuring the content of hwdids into dtbauto section and vice-versa. Found this while adding the new `dtbauto` and `.hwdids` fields in the go implementation of `sd-measure` at https://github.com/siderolabs/talos/blob/main/internal/pkg/secureboot/measure/measure.go. Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
committed by
Lennart Poettering
parent
55d47a8988
commit
0ad1fd7a80
@@ -158,9 +158,9 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
_ARG_PCRSIG, /* the .pcrsig section is not input for signing, hence not actually an argument here */
|
||||
ARG_PCRPKEY,
|
||||
ARG_PROFILE,
|
||||
ARG_HWIDS,
|
||||
ARG_DTBAUTO,
|
||||
_ARG_SECTION_LAST,
|
||||
ARG_DTBAUTO = _ARG_SECTION_LAST,
|
||||
ARG_HWIDS = _ARG_SECTION_LAST,
|
||||
ARG_BANK,
|
||||
ARG_PRIVATE_KEY,
|
||||
ARG_PRIVATE_KEY_SOURCE,
|
||||
|
||||
Reference in New Issue
Block a user