Merge pull request #201202 from m-bdf/sdboot-infinite-timeout
This commit is contained in:
@@ -187,8 +187,7 @@ def system_dir(profile: str | None, generation: int, specialisation: str | None)
|
|||||||
|
|
||||||
def write_loader_conf(profile: str | None) -> None:
|
def write_loader_conf(profile: str | None) -> None:
|
||||||
with open(f"{EFI_SYS_MOUNT_POINT}/loader/loader.conf.tmp", 'w') as f:
|
with open(f"{EFI_SYS_MOUNT_POINT}/loader/loader.conf.tmp", 'w') as f:
|
||||||
if TIMEOUT != "":
|
f.write(f"timeout {TIMEOUT}\n")
|
||||||
f.write(f"timeout {TIMEOUT}\n")
|
|
||||||
if profile:
|
if profile:
|
||||||
f.write("default nixos-%s-generation-*\n" % profile)
|
f.write("default nixos-%s-generation-*\n" % profile)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ let
|
|||||||
|
|
||||||
nix = config.nix.package.out;
|
nix = config.nix.package.out;
|
||||||
|
|
||||||
timeout = optionalString (config.boot.loader.timeout != null) config.boot.loader.timeout;
|
timeout = if config.boot.loader.timeout == null then "menu-force" else config.boot.loader.timeout;
|
||||||
|
|
||||||
configurationLimit = if cfg.configurationLimit == null then 0 else cfg.configurationLimit;
|
configurationLimit = if cfg.configurationLimit == null then 0 else cfg.configurationLimit;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user