about summary refs log tree commit diff
path: root/nixos/modules/system/boot
diff options
context:
space:
mode:
authorThibault Polge <thibault@thb.lt>2018-08-12 14:02:44 +0200
committerThibault Polge <thibault@thb.lt>2018-08-12 15:12:27 +0200
commitd470a407ebcdbf0da30595120f6006aa08b46ee0 (patch)
tree12ed0fe0c6939c882050b9521e1e2df71d972bf0 /nixos/modules/system/boot
parentd61de06f881b19dec041126f0686f1aff787bc8c (diff)
downloadnixlib-d470a407ebcdbf0da30595120f6006aa08b46ee0.tar
nixlib-d470a407ebcdbf0da30595120f6006aa08b46ee0.tar.gz
nixlib-d470a407ebcdbf0da30595120f6006aa08b46ee0.tar.bz2
nixlib-d470a407ebcdbf0da30595120f6006aa08b46ee0.tar.lz
nixlib-d470a407ebcdbf0da30595120f6006aa08b46ee0.tar.xz
nixlib-d470a407ebcdbf0da30595120f6006aa08b46ee0.tar.zst
nixlib-d470a407ebcdbf0da30595120f6006aa08b46ee0.zip
nixos/systemd-boot: Add missing newline
This fixes an issue where setting both
`boot.loader.systemd-boot.editor` to `false` and
`boot.loader.systemd-boot.consoleMode` to any value would concatenate
the two configuration lines in the output, resulting in an invalid
`loader.conf`.
Diffstat (limited to 'nixos/modules/system/boot')
-rw-r--r--nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
index 1dc888c58227..6016a85ea061 100644
--- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
+++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
@@ -42,7 +42,7 @@ def write_loader_conf(profile, generation):
         else:
             f.write("default nixos-generation-%d\n" % (generation))
         if not @editor@:
-            f.write("editor 0");
+            f.write("editor 0\n");
         f.write("console-mode @consoleMode@\n");
     os.rename("@efiSysMountPoint@/loader/loader.conf.tmp", "@efiSysMountPoint@/loader/loader.conf")