-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greenboot boot_counter does not decrement if sudo rpm-ostree reset is run before reboot #107
Comments
@dhensel-rh Though I am not sure why the boot_counter is still set, please share the journald log post reboot of the services: greenboot-grub2-set-counter, greenboot-healthcheck, greenboot-grub2-set-success |
This looks like https://bugzilla.redhat.com/show_bug.cgi?id=2185901 ? |
If I'm not mistaken It's possible that also Either way, there is nothing telling grub to unset the boot_counter variable again in this case. |
sudo journalctl -o cat -u greenboot-grub2-set-success
sudo journalctl -o cat -u greenboot-grub2-set-counter
sudo journalctl -o cat -u greenboot-healthcheck
|
So greenboot needs as a failure in healthcehck script to start taking any action(reboot/rollback), A need to add a script possibly in the required.d/ which can check for the |
Issue:
When rpm-ostree command removes a package, and a rpm-ostree reset (Remove all mutations) is performed, it affects the behavior of Greenboot. After a reboot is initiated, Greenboot does not perform the check, and the Greenboot boot_counter stats at the set default value.
Steps to reproduce:
Expected Result:
Greenboot should noticed a package is missing and attempt to restore the last known good state
Actual Result:
Greenboot does not attempt to fix itself. Greenboot boot_counter remains set at the default set value
additional notes (is any):
The ostree status:
GREENBOOT_WATCHDOG_CHECK_ENABLED=true
Greenboot variables:
boot_counter=2
A system reboot will clear the boot flag, and restore the system to a good known state
The text was updated successfully, but these errors were encountered: