nixos/systemd-boot: Add consoleMode option

This commit is contained in:
Silvan Mosberger 2018-07-02 18:21:51 +02:00
parent dd608f80db
commit e08148041f
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7
2 changed files with 35 additions and 0 deletions

View file

@ -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):