Skip to content

Add hw_firmware_type and hw_machine_type to meta schema#1242

Merged
berendt merged 1 commit into
mainfrom
add-hw-firmware-and-machine-type-to-schema
Jun 27, 2026
Merged

Add hw_firmware_type and hw_machine_type to meta schema#1242
berendt merged 1 commit into
mainfrom
add-hw-firmware-and-machine-type-to-schema

Conversation

@berendt

@berendt berendt commented Jun 27, 2026

Copy link
Copy Markdown
Member

Adds two missing keys to the meta schema in etc/schema.yaml. Using either of them in an image definition previously 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 etc/schema.yaml: add hw_firmware_type #1233.
  • hw_machine_type: enum('pc', 'q35', 'virt', None) — needed alongside hw_firmware_type (e.g. q35).

Both keys are optional (required=False).

Validated with yamale: the new values are accepted, invalid values (e.g. hw_firmware_type: bios, hw_machine_type: bogus) are rejected, and all existing etc/images/*.yml definitions still validate.

Fixes #1097
Closes #1236

This supersedes #1233 (combined here with the hw_machine_type addition); the original hw_firmware_type change is credited to @johanneskastl via Co-authored-by.

🤖 Generated with Claude Code

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 berendt force-pushed the add-hw-firmware-and-machine-type-to-schema branch from 5865058 to cc05c41 Compare June 27, 2026 18:09
@berendt berendt merged commit 1578594 into main Jun 27, 2026
3 checks passed
@berendt berendt deleted the add-hw-firmware-and-machine-type-to-schema branch June 27, 2026 18:28
@github-project-automation github-project-automation Bot moved this from Ready to Done in Human Board Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add hw_machine_type to schema — needed alongside hw_firmware_type Cannot set meta.hw_firmware_type to "uefi" because the key is missing in schema

2 participants