stages/grub2.legacy: make schema stricter
The code requires that `id`, `product` and `kernel` are defined for each entry. Reflect that in the schema. Require at least one entry.
This commit is contained in:
parent
8137597ac4
commit
dcc56d083f
1 changed files with 2 additions and 0 deletions
|
|
@ -131,9 +131,11 @@ SCHEMA = """
|
|||
"entries": {
|
||||
"description": "List of entries to add to the boot menu",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "product", "kernel"],
|
||||
"properties": {
|
||||
"default": {
|
||||
"type": "boolean",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue