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:
parent
d9488e5f8b
commit
779e5c40ea
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue