Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc QEMU usage nitpicks #181

Merged
merged 4 commits into from
Sep 24, 2024
Merged

Conversation

yfyf
Copy link
Collaborator

@yfyf yfyf commented Sep 24, 2024

Avoids using (to-be) deprecated or undocumented flags / functions and explicitly specifies the overlay format.

cc @knuton

Checklist

  • Changelog updated
  • Code documented
  • User manual updated

`nixosTest` is to-be-depercated, see here:
        NixOS/nixpkgs#293891
qemu man pages list all options with a single dash, the double dash
seems to be implicitly accepted, but not documented.
Not sure how this worked earlier, maybe earlier versions of QEMU
assumed raw by default?
Comment on lines +86 to +87
QEMU_IMG, 'create', '-f', 'qcow2', '-b', disk, '-F', 'raw',
temp + "/disk-overlay.qcow2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this seems to have changed: https://progress.opensuse.org/issues/98117

Another option would be backing_file={},backing_format=raw.

But this is probably better, using the surface-level parameters to create.

@knuton knuton merged commit 103d7ae into dividat:main Sep 24, 2024
5 checks passed
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