Reboot automatically when the kernel crashes #7
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/panic-on-oops"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
By default, after a kernel Oops, Linux kills the task that hit it and keeps
running. If that task held a lock, the machine can freeze instead. That's what
happened to code.openneo.net with Debian's 6.1.0-55 kernel (Debian bug
#1154101): an ext4 Oops left the filesystem journal locked, every disk write
hung, and the box sat frozen for 13 hours until a manual reboot.
So set kernel.panic_on_oops=1 and kernel.panic=10 on both machines, in
/etc/sysctl.d/90-reboot-on-crash.conf: an Oops now panics, and a panic reboots
after 10 seconds.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com