WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@r-vdp
Copy link
Contributor

@r-vdp r-vdp commented Aug 26, 2025

See https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/

Boot counting is controlled with a single option, boot.lanzaboote.bootCounting.initialTries, if this option is set to a non-zero value, new boot entries will be created with a counter added, set to the value specified in that option. If the option is set to zero, which is also the default, then no boot-counting counters will be added.
Already existing entries will not be modified, so boot counting only applies to new boot entries.

CC: @RaitoBezarius

@r-vdp r-vdp force-pushed the rvdp/boot_counting branch 2 times, most recently from b637024 to c582aa8 Compare August 26, 2025 13:52
@blitz
Copy link
Member

blitz commented Aug 29, 2025

Interesting! It will take me some time to get to this. If there is a way to split this into smaller PRs that would help speed things up!

@r-vdp
Copy link
Contributor Author

r-vdp commented Aug 29, 2025

Yeah I can split it, the reason that I didn't is that the earlier commits don't add much value by themselves besides preparing for the boot counting implementation, so I'm not sure that it would make much sense to merge those separately.

But if it would make reviewing easier for you, then I can definitely create individual PRs, more or less corresponding to the commits in this one.

@r-vdp r-vdp force-pushed the rvdp/boot_counting branch 2 times, most recently from 1d3dad7 to b8d1322 Compare August 31, 2025 12:32
@r-vdp r-vdp changed the title feat: add boot-counting support to lanzaboote feat: add boot-counting support to lanzaboote Aug 31, 2025
@r-vdp
Copy link
Contributor Author

r-vdp commented Aug 31, 2025

@blitz I split out #479 but I cannot set the base of this branch to a branch in my fork, so the commits still show up here (and boot counting needs that PR).
But so you could review that PR first if you wish, before this one.

@r-vdp r-vdp force-pushed the rvdp/boot_counting branch 4 times, most recently from fd1e46a to 79aa29e Compare September 15, 2025 22:28
@r-vdp r-vdp force-pushed the rvdp/boot_counting branch from 79aa29e to 9be9e1d Compare October 13, 2025 19:44
@r-vdp r-vdp force-pushed the rvdp/boot_counting branch 4 times, most recently from a6387e7 to 43efce1 Compare November 17, 2025 17:47
@r-vdp r-vdp force-pushed the rvdp/boot_counting branch from 43efce1 to d288378 Compare November 30, 2025 22:17
See https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/

Boot counting is controlled with a single option, `boot.lanzaboote.bootCounting.initialTries`,
if this option is set to a non-zero value, new boot entries will be created with
a counter added, set to the value specified in that option.
If the option is set to zero, which is also the default,
then no boot-counting counters will be added.
Already existing entries will not be modified,
so boot counting only applies to new boot entries.
@r-vdp r-vdp force-pushed the rvdp/boot_counting branch from d288378 to 1d77ad4 Compare December 1, 2025 10:13
@r-vdp
Copy link
Contributor Author

r-vdp commented Dec 1, 2025

With #479 merged (thanks @nikstur!), this is now ready for review, @blitz, @RaitoBezarius, @nikstur (for some reason I don't have permission to actually request reviews on this repo, hence the pings).

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