Kernel Panic

[UNTESTED] Auto Reboot after Kernel Panics

[UNTESTED] Auto Reboot after Kernel Panics

Set at runtime:

echo 20 | sudo tee /proc/sys/kernel/panic

Alternatively, to make it persistent, create and edit /etc/sysctl.d/99-panic-reboot.conf:

sudo nano /etc/sysctl.d/99-panic-reboot.conf

With the following content:

kernel.panic = 20

Apply changes:

sudo sysctl --system

References

https://hub.mender.io/t/how-to-make-raspberry-pi-auto-reboot-after-kernel-panic/5152

ChatGPT

Code licensed under the MIT License; all other content under CC BY-SA 4.0.
Last updated on Oct 13, 2026 12:15 UTC
Built with Hugo
Theme Stack designed by Jimmy