mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 21:49:34 +03:00
nixos/systemd-boot: Add consoleMode option
This commit is contained in:
parent
dd608f80db
commit
e08148041f
2 changed files with 35 additions and 0 deletions
|
@ -43,6 +43,7 @@ def write_loader_conf(profile, generation):
|
|||
f.write("default nixos-generation-%d\n" % (generation))
|
||||
if not @editor@:
|
||||
f.write("editor 0");
|
||||
f.write("console-mode @consoleMode@\n");
|
||||
os.rename("@efiSysMountPoint@/loader/loader.conf.tmp", "@efiSysMountPoint@/loader/loader.conf")
|
||||
|
||||
def profile_path(profile, generation, name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue