ostree.config: add bootloader config option

Ability to set the bootloader backend that OSTree should use. NB:
normally this should be set to `none` since in modern distros and
bootloaders the BLS is used and the BLS snippets are generated on
`none` but none of the of the specific bootloader tools are run,
like `grub2-mkconfig` for grub.

Update the fedora image manifest to use that config setting.
This commit is contained in:
Christian Kellner 2021-09-09 11:03:12 +02:00 committed by Achilleas Koutsou
parent 187681f17d
commit 7ec305a343
3 changed files with 12 additions and 2 deletions

View file

@ -5,6 +5,9 @@ Change OSTree configuration
Change the configuration for an OSTree repository.
Currently only the following values are supported:
- `sysroot.readonly`
- `sysroot.bootloader`
See `ostree.repo-config(5)` for more information.
"""
import os
@ -32,6 +35,11 @@ SCHEMA = """
"additionalProperties": false,
"description": "Options concerning the sysroot",
"properties": {
"bootloader": {
"description": "Configure the bootloader that OSTree uses (use 'none' for BLS).",
"type": "string",
"enum": ["none", "auto", "grub2", "syslinux", "uboot", "zipl"]
},
"readonly": {
"description": "Read only sysroot and boot",
"type": "boolean"

View file

@ -870,7 +870,8 @@
"repo": "/ostree/repo",
"config": {
"sysroot": {
"readonly": true
"readonly": true,
"bootloader": "none"
}
}
}

View file

@ -282,7 +282,8 @@
"repo": "/ostree/repo",
"config": {
"sysroot": {
"readonly": true
"readonly": true,
"bootloader": "none"
}
}
}