Skip to content

boot_counter not decrementing? #135

Closed
@vkrizan

Description

@vkrizan

Hello,

I'm failing to understand how the greenboot prevents for bootloops and how it decrements the boot_counter on each failure.
Only place I've found where the variable is decremented is in the static grub config:

decrement boot_counter

This seems to depend on bootupd, however with the RPM packages in regular Fedora (dist-git) and CentOS repositories the dependency on bootupd and the file greenboot.cfg grub file cannot be found.

Requires: bootupd

install -D -t %{buildroot}%{_prefix}/lib/bootupd/grub2-static/configs.d grub2/greenboot.cfg

The greenboot-grub2-set-counter script is only called once without a parameter...

How should this work outside of Fedora IoT? Or what am I missing?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestjiraflow issues to jira

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions