phonebox: arm hardware watchdog and auto-reboot on panic

mirach and almach have each hung at least twice since July with nothing in
the journal or pstore, and stayed down until someone power-cycled the board.
RuntimeWatchdogSec was 0 and kernel.panic was 0, so a hung kernel/PID1 or a
panic could never self-recover.

Arm the systemd hardware watchdog (30s) and reboot 10s after a panic on all
phonebox nodes. Watchdog resets will show up as extra entries in
journalctl --list-boots.
This commit is contained in:
kurogeek committed 2026-09-29 07:46:41 +00:00
1 parent a80202e419
commit 5066d4ee46
1 file changed
+7
+7
View File
@@ -256,6 +256,13 @@
''; '';
}; };
# Phonebox nodes are headless and unattended. Observed on mirach/almach
# (2026-07..09): hard hangs leave no journal/pstore trace and stay down
# until someone power-cycles the board. Arm the hardware watchdog so a
# hung kernel/PID1 resets itself, and reboot instead of halting on panic.
systemd.settings.Manager.RuntimeWatchdogSec = "30s";
boot.kernel.sysctl."kernel.panic" = 10;
networking.interfaces = { networking.interfaces = {
${ata-interface} = { ${ata-interface} = {
useDHCP = false; useDHCP = false;