From 3930bcb3c3998dacc7158b30b778213c5cee06a2 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Thu, 22 Dec 2022 09:33:50 -0700 Subject: 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 --- nixos/modules/installer/cd-dvd/iso-image.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'nixos') 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. -- cgit 1.4.1