stages/fix-bls: add missing schema for prefix

Add the missing schema information for the `prefix` option. While
there also add some description of it in the STAGE_INFO field.
This commit is contained in:
Christian Kellner 2020-04-25 14:13:51 +02:00
parent 2757125b60
commit 685650cda2

View file

@ -13,9 +13,23 @@ This happens because some boot loader config tools (e.g. grub2-mkrelpath)
examine /proc/self/mountinfo to find the "real" path to /boot, and find the
path to the osbuild tree - which won't be valid at boot time for this image.
The paths in the Bootloader Specification are relative to the partition
they are located on, i.e. `/boot/loader/...` if `/boot` is on the root
file-system partition. If `/boot` is on a separate partition, the correct
path would be `/loader/.../` The `prefix` can be used to adjust for that.
By default it is `/boot`, i.e. assumes `/boot` is on the root file-system.
This stage reads and (re)writes all .conf files in /boot/loader/entries.
"""
STAGE_OPTS = ""
STAGE_OPTS = """
"properties": {
"prefix": {
"description": "Prefix to use, normally `/boot`",
"type": "string",
"default": "/boot"
}
}
"""
def main(tree, options):