stages/grub2: set default entry

Without a default and/or timeout set, grub refuses to boot.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-06-26 13:46:19 +02:00
parent d9488e5f8b
commit 779e5c40ea

View file

@ -50,6 +50,8 @@ 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")
# Create a working directory on a tmpfs, maybe we should implicitly