Skip to content

feat(fwcfg): add new DataSource for QEMU fw_cfg device blobs#6913

Open
hw-claudio wants to merge 1 commit into
canonical:mainfrom
hw-claudio:main
Open

feat(fwcfg): add new DataSource for QEMU fw_cfg device blobs#6913
hw-claudio wants to merge 1 commit into
canonical:mainfrom
hw-claudio:main

Conversation

@hw-claudio

@hw-claudio hw-claudio commented Jun 25, 2026

Copy link
Copy Markdown

allow sourcing the data from sysfs as exposed by the linux guest fw_cfg driver in /sys/firmware/qemu_fw_cfg/

  • add new cloudinit/sources/DataSourceQemuFwCfg.py
  • add unittest DataSourceQemuFwCfg.py and list it in test_common.py
  • add "cloudinit.sources.DataSourceQemuFwCfg" to pyproject.toml
  • add "QemuFwCfg" to the datasource_list in cloudinit/settings.py
  • add "QemuFwCfg" to ds-identify

Fixes: GH 3684
Fixes: GH 3133

Proposed Commit Message

feat(fwcfg): add new DataSource for QEMU fw_cfg device blobs

allow sourcing the data from sysfs as exposed by the linux guest fw_cfg driver in /sys/firmware/qemu_fw_cfg/

- add new cloudinit/sources/DataSourceQemuFwCfg.py
- add unittest DataSourceQemuFwCfg.py and list it in test_common.py
- add "cloudinit.sources.DataSourceQemuFwCfg" to pyproject.toml
- add "QemuFwCfg" to the datasource_list in cloudinit/settings.py
- add "QemuFwCfg" to ds-identify

Fixes: GH 3684
Fixes: GH 3133

Additional Context

Test Steps

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

allow sourcing the data from sysfs as exposed by the linux guest
fw_cfg driver in /sys/firmware/qemu_fw_cfg/

- add new cloudinit/sources/DataSourceQemuFwCfg.py
- add unittest DataSourceQemuFwCfg.py and list it in test_common.py
- add "cloudinit.sources.DataSourceQemuFwCfg" to pyproject.toml
- add "QemuFwCfg" to the datasource_list in cloudinit/settings.py
- add "QemuFwCfg" to ds-identify

Fixes: GH 3684
Fixes: GH 3133
Signed-off-by: Claudio Fontana <claudio.fontana@gmail.com>
@holmanb holmanb self-assigned this Jun 29, 2026
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.

2 participants