stages/grub2: fix schema entry for 'legacy'

The 'legacy' option can either be of type boolean (the old version
kept for compatibility reasons) or 'string'. Adjust the schema to
account for that.
This commit is contained in:
Christian Kellner 2020-01-29 14:46:41 +01:00 committed by Tom Gundersen
parent 56a8586bab
commit 4f72036efa

View file

@ -66,8 +66,10 @@ STAGE_OPTS = """
},
"legacy": {
"description": "Include legacy boot support",
"type": "boolean",
"default": true
"oneOf": [
{"type": "boolean", "default": true},
{"type": "string", "default": "i386-pc"}
]
},
"uefi": {
"description": "Include UEFI boot support",