Merge pull request #91073 from danielfullmer/systemd-string-format
nixos/systemd-boot: fix incorrect string formatting
This commit is contained in:
commit
a84cbb60f0
@ -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.conf\n".format(profile, generation))
|
f.write("default nixos-%s-generation-%d.conf\n" % (profile, generation))
|
||||||
else:
|
else:
|
||||||
f.write("default nixos-generation-%d.conf\n".format(generation))
|
f.write("default nixos-generation-%d.conf\n" % (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