nixos/systemd-boot: fix default boot entry selection
6cd12ebcfe
changed behaviour - now the "default" entry needs to identity an entry
with its full name, including the ".conf".
Reported-In: https://github.com/NixOS/nixpkgs/issues/86422
This commit is contained in:
parent
5cd28326db
commit
42b92250b9
@ -47,9 +47,9 @@ def write_loader_conf(profile, generation):
|
|||||||
if "@timeout@" != "":
|
if "@timeout@" != "":
|
||||||
f.write("timeout @timeout@\n")
|
f.write("timeout @timeout@\n")
|
||||||
if profile:
|
if profile:
|
||||||
f.write("default nixos-%s-generation-%d\n" % (profile, generation))
|
f.write("default nixos-%s-generation-%d.conf\n".format(profile, generation))
|
||||||
else:
|
else:
|
||||||
f.write("default nixos-generation-%d\n" % (generation))
|
f.write("default nixos-generation-%d.conf\n".format(generation))
|
||||||
if not @editor@:
|
if not @editor@:
|
||||||
f.write("editor 0\n");
|
f.write("editor 0\n");
|
||||||
f.write("console-mode @consoleMode@\n");
|
f.write("console-mode @consoleMode@\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user