Skip to content
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

Option to disable health-checker in Grub #8

Open
idnovic opened this issue May 21, 2021 · 3 comments · May be fixed by #28
Open

Option to disable health-checker in Grub #8

idnovic opened this issue May 21, 2021 · 3 comments · May be fixed by #28

Comments

@idnovic
Copy link

idnovic commented May 21, 2021

Hello,

I would like to be able to do the following:

force disable the health-checker via a grub flag.
My reasoning is the that currently selinux is in a failed state in MicroOS.

But what happens if I check selinux with the health-checker?
An endless cycle of reboots. (theoretically, I did not try it)

From a security perspective I may want to check the state of selinux during start up.
Let me disable the health-check for debugging purposes if needed.

@idnovic
Copy link
Author

idnovic commented May 21, 2021

I did find the health_checker_flag variable.
But I am unsure what happens if i manually set it.
The system uses this variable.
So i think that an manual override should not use the same variable.

@idnovic idnovic changed the title Option to disable health-checker Option to disable health-checker in Grub May 21, 2021
@laenion
Copy link
Contributor

laenion commented Aug 29, 2021

Just a short comment about how health-checker is working:

If a health-checker test should fail, then the system will be reset to the previous snapshot. If that snapshot also fails, then the system will be rebooted once more, and if the tests still fail, then the system will switch to emergency mode (i.e. it is probably better to not start into a known broken system, but open an emergency shell).

Making it possible to disable health-checker via kernel parameters for debugging purposes might still make sense though.

@thkukuk
Copy link
Contributor

thkukuk commented Nov 4, 2024

An option which disables "rollback" or "reboot" of health-checker, but not the tests itself, would indeed be very useful.
@danyspin97 can you please look at this?

@danyspin97 danyspin97 linked a pull request Nov 7, 2024 that will close this issue
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 a pull request may close this issue.

3 participants