How to configure "reboot on kernel panic"

Good time of the day, Community.

As part of my troubleshooting a laptop freezing randomly, I was proposed to try and enable “reboot on kernel panic”. To be honest, I have a long way to go with Linux, not even speaking about Fedora, so, honestly, I would hope that someone could tell me how to do it in Fedora (37, Workstation).

And yes, I did google for articles, but nothing from How to early configure Linux kernel to reboot on panic? - Unix & Linux Stack Exchange seemed help me.

1 Like

For anyone looking, sysctl kernel.panic=value did the trick (I guess I will be looking on how to persist that… but it will do for now).

Modifying files in /etc/sysctl.d - Working with sysctl and kernel tunables


Thank you.

1 Like