From fb0b741ea1040df9aaeb70d7f768415aecd5dc21 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 8 Apr 2022 21:18:42 +0200 Subject: [PATCH] [Boot] Reboot 5 seconds after panic (instead of just staying there) --- boot.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot.nix b/boot.nix index c19db52..16d07d8 100644 --- a/boot.nix +++ b/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;