mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Boot] Reboot 5 seconds after panic (instead of just staying there)
This commit is contained in:
parent
d6c64124e1
commit
fb0b741ea1
1 changed files with 4 additions and 0 deletions
4
boot.nix
4
boot.nix
|
|
@ -95,6 +95,10 @@ in
|
|||
|
||||
aviallon.boot.cmdline = {
|
||||
"syscall.x32" = cfg.x32abi.enable;
|
||||
|
||||
# Reboot after 5 seconds on panic (prevent system lockup)
|
||||
"panic" = 5;
|
||||
|
||||
# Sets loops_per_jiffy to given constant, thus avoiding time-consuming boot-time autodetection
|
||||
# https://www.kernel.org/doc/html/v5.15/admin-guide/kernel-parameters.html
|
||||
"lpj" = cfg.loops_per_jiffies;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue