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:
parent
9054da7d25
commit
d8f36b55fa
3 changed files with 19 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue