Skip to content

etc/schema.yaml: add hw_firmware_type#1233

Closed
johanneskastl wants to merge 1 commit into
osism:mainfrom
johanneskastl:20260608_Kastl_add_hw_firmware_type
Closed

etc/schema.yaml: add hw_firmware_type#1233
johanneskastl wants to merge 1 commit into
osism:mainfrom
johanneskastl:20260608_Kastl_add_hw_firmware_type

Conversation

@johanneskastl

Copy link
Copy Markdown
Contributor

Fixes #1097

Not sure if there is anything else that needs to be added (I have not looked into tests yet).

I found no other value for this, it seems to be either set to uefi or left out.

Signed-off-by: Johannes Kastl <git@johannes-kastl.de>
@berendt

berendt commented Jun 27, 2026

Copy link
Copy Markdown
Member

Thanks @johanneskastl! The hw_firmware_type addition from this PR has been incorporated into #1242, combined with the related hw_machine_type addition requested in #1236. Your contribution is credited there via Co-authored-by. Closing this in favour of #1242.

@berendt berendt closed this Jun 27, 2026
berendt added a commit that referenced this pull request Jun 27, 2026
Both keys were missing from the meta schema in etc/schema.yaml, so
using them in an image definition failed validation with
"Unexpected element".

- hw_firmware_type: enum('uefi', None) — required e.g. for images that
  must boot via UEFI (incorporates the change from #1233).
- hw_machine_type: enum('pc', 'q35', 'virt', None) — needed alongside
  hw_firmware_type (e.g. q35).

Closes #1097
Closes #1236

Assisted-by: Claude:claude-opus-4-8

Co-authored-by: Johannes Kastl <git@johannes-kastl.de>
Signed-off-by: Christian Berendt <berendt@osism.tech>
berendt added a commit that referenced this pull request Jun 27, 2026
Both keys were missing from the meta schema in etc/schema.yaml, so
using them in an image definition failed validation with
"Unexpected element".

- hw_firmware_type: enum('uefi', None) — required e.g. for images that
  must boot via UEFI (incorporates the change from #1233).
- hw_machine_type: enum('pc', 'q35', 'virt', None) — needed alongside
  hw_firmware_type (e.g. q35).

Closes #1097
Closes #1236

Assisted-by: Claude:claude-opus-4-8
Co-authored-by: Johannes Kastl <git@johannes-kastl.de>
Signed-off-by: Christian Berendt <berendt@osism.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot set meta.hw_firmware_type to "uefi" because the key is missing in schema

2 participants