feat(systemd): add shutdown/boot hang diagnostics module
Shutdown stalls are hard to debug because journald is torn down mid-way, so late hangs never reach the journal. `modules/shutdown-debug.nix` exposes `local.shutdownDebug.*`: verbose systemd logging routed to kmsg (recoverable from pstore after a forced power-off), an opt-in tty9 debug shell, and a shortened `DefaultTimeoutStopSec` preset (system + user) so a hung unit is killed and logged in seconds instead of spinning at 90s. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -71,3 +71,7 @@ hosts/example/ # the template host (placeholder hardware-configuration.nix
|
||||
```
|
||||
|
||||
Shared `*.nix` / `*.lock` live at the top level; per-host files under `hosts/<host>/`.
|
||||
|
||||
Chasing a shutdown/boot hang? `modules/shutdown-debug.nix` exposes `local.shutdownDebug.*`
|
||||
(verbose systemd logging to kmsg, a tty9 debug shell, a shortened stop-timeout) — see its
|
||||
header comment for how to read the evidence.
|
||||
|
||||
Reference in New Issue
Block a user