summaryrefslogtreecommitdiffstats
path: root/nixos/modules/installer/cd-dvd
diff options
context:
space:
mode:
authorNathan Henrie <nate@n8henrie.com>2022-12-22 09:33:50 -0700
committerEmery Hemingway <ehmry@posteo.net>2022-12-22 13:25:14 -0600
commit3930bcb3c3998dacc7158b30b778213c5cee06a2 (patch)
treef011ea4941fe40de6fd234b233e995e1e692527c /nixos/modules/installer/cd-dvd
parent7fd752872ea2be04a66226bdc55151baf4105c32 (diff)
Make syslinuxTimeout match documentation
- https://wiki.syslinux.org/wiki/index.php?title=SYSLINUX#TIMEOUT_timeout - https://github.com/NixOS/nixpkgs/blob/cbe419ed4c8f98bd82d169c321d339ea30904f1f/nixos/modules/system/boot/loader/loader.nix#L16 Fixes https://github.com/NixOS/nixpkgs/issues/207289
Diffstat (limited to 'nixos/modules/installer/cd-dvd')
-rw-r--r--nixos/modules/installer/cd-dvd/iso-image.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index 5bd343c85fa2..81aca8617389 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -70,14 +70,12 @@ let
;
# Timeout in syslinux is in units of 1/10 of a second.
- # 0 is used to disable timeouts.
+ # null means max timeout (35996, just under 1h in 1/10 seconds)
+ # 0 means disable timeout
syslinuxTimeout = if config.boot.loader.timeout == null then
- 0
+ 35996
else
- max (config.boot.loader.timeout * 10) 1;
-
-
- max = x: y: if x > y then x else y;
+ config.boot.loader.timeout * 10;
# The configuration file for syslinux.