stages/grub2: fix defaults/grub

This file was missing new-lines.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-07-01 22:15:59 +02:00
parent 02797f1e9a
commit 037f439d01

View file

@ -50,9 +50,9 @@ def main(tree, input_dir, options):
# Create the configuration file that determines how grub.cfg is generated.
os.makedirs(f"{tree}/etc/default", exist_ok=True)
with open(f"{tree}/etc/default/grub", "w") as default:
default.write("GRUB_TIMEOUT=0")
default.write("GRUB_DEFAULT=0")
default.write("GRUB_ENABLE_BLSCFG=true")
default.write("GRUB_TIMEOUT=0\n"
"GRUB_DEFAULT=0\n"
"GRUB_ENABLE_BLSCFG=true\n")
# Create a working directory on a tmpfs, maybe we should implicitly
# always do this.