mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-16 06:29:17 +03:00
nixos/systemd-boot: fix infinite timeout
This commit is contained in:
parent
31c76b1c40
commit
7ae6219163
2 changed files with 2 additions and 3 deletions
|
@ -181,8 +181,7 @@ def system_dir(profile: str | None, generation: int, specialisation: str | None)
|
|||
|
||||
def write_loader_conf(profile: str | None) -> None:
|
||||
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:
|
||||
f.write("default nixos-%s-generation-*\n" % profile)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue