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

modules/nixos/common: reboot on panic #1678

Merged
merged 1 commit into from
Jan 23, 2025
Merged

modules/nixos/common: reboot on panic #1678

merged 1 commit into from
Jan 23, 2025

Conversation

zowoq
Copy link
Contributor

@zowoq zowoq commented Jan 21, 2025

Try to avoid having stuck machines that need to have their power cycled manually.

@zowoq zowoq changed the title modules/nixos/common: reboot on panic, set softlockup_panic modules/nixos/common: reboot on panic Jan 21, 2025
@zowoq zowoq marked this pull request as ready for review January 22, 2025 03:55
@zowoq zowoq requested a review from Mic92 January 22, 2025 03:55
boot.kernel.sysctl = {
"kernel.hardlockup_panic" = 1;
"kernel.hung_task_panic" = 1;
"kernel.panic_on_oops" = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When are those applied in the boot process? I would probably apply those late in the boot process (maybe even 5mins after boot) as it can potentially make it hard to debug early boot issues i.e. faulty hardware + kvm console. Those issues would also likely cause a reboot loop anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, moved to run 5m after boot.

@zowoq zowoq added this pull request to the merge queue Jan 23, 2025
Merged via the queue into master with commit 485a824 Jan 23, 2025
3 checks passed
@zowoq zowoq deleted the panic branch January 23, 2025 01:05
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