stages/grub2: option to configure GRUB_DEFAULT

Add a new attribute `config.default` that when set will be written to
`GRUB_DEFAULT`. This should be set to `saved` when a `saved_entry` is
specified so that the functionality will be preserved if the grub cfg
gets regenerated (which is really should not, but we can not prohibit
it).
This commit is contained in:
Christian Kellner 2022-03-01 15:28:10 +01:00 committed by Achilleas Koutsou
parent 9054da7d25
commit d8f36b55fa
3 changed files with 19 additions and 2 deletions

View file

@ -376,7 +376,9 @@
"console"
],
"serial": "serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
}
},
"saved_entry": "fff-1.0.0",
"write_defaults": true
}
}
]

View file

@ -34,7 +34,9 @@
"console"
],
"serial": "serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
}
},
"saved_entry": "fff-1.0.0",
"write_defaults": true
}
}
]