From 10a0eb5df26a68e99b64fe2d8118d0efd1139de8 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Sun, 10 Apr 2022 02:09:48 +0200 Subject: [PATCH] [Boot] Fix error if loops_per_jiffies is not set --- boot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.nix b/boot.nix index 6ca3d9e..c19db52 100644 --- a/boot.nix +++ b/boot.nix @@ -77,7 +77,7 @@ in description = "Set loops_per_jiffies to given constant, reducing boot-time. A value of 0 means autodetection."; default = 0; example = 4589490; - type = types.addCheck types.int (v: v > 500); + type = types.addCheck types.int (v: v > 500 || v == 0); }; cmdline = mkOption {