mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Make syslinuxTimeout match documentation
- https://wiki.syslinux.org/wiki/index.php?title=SYSLINUX#TIMEOUT_timeout
- cbe419ed4c/nixos/modules/system/boot/loader/loader.nix (L16)
Fixes https://github.com/NixOS/nixpkgs/issues/207289
This commit is contained in:
parent
7fd752872e
commit
3930bcb3c3
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user