-
Notifications
You must be signed in to change notification settings - Fork 50
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
cmd/build: add new --manifest-only
, --manifest-path
and -arch
options
#900
Conversation
This option allows build to just generate the manifest but not run `osbuild`. This is useful for the `otk` tests where a manifest for a specific distro needs to get generated to produce identical otk files. Note that we also have `gen-manifests` but that seems geared towards a different use-case so it's harder to use/change for this purpose.
The `build` binary is perfectly happy with an empty build config so let's make this argument optional. Alternatively we could validate and enforce non-empty build configs if there is actually something in there that is important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea of having this is good but there's some confusion for me; how is this different from using cmd/gen-manifests
. Perhaps it'd be better suited to add the manifest-path
there?
Sure, that could also be done, I have no super strong opinion either way. My reasoning is that using [edit: and maybe I'm missing something, this area I'm not super versed in] |
This commit allows the user to select where the manifest json is writen. This is especially useful in combination with `--manifest-only` and is used by `otk` to generate reference images.
This flag allows to set the target architecture for the build. This is most useful for `-manifest-only` and the intended use-case is generating reference images for `otk`. But it could also be used with `qemu-user` and should work equally well as `bib` (maybe better as the "regular" distro code tends to use less of the modern system calls that tend to be problematic like `openat2`).
59790a3
to
95e39d3
Compare
This got me thinking if it would be useful to have a
(though we also do
The extra bits can be skipped with EDIT: We could invert the default value for |
Closing as this is no longer used/needed for osbuild/otk#188 |
This PR tweaks the
build
binary to make it easier forotk
to use it to generate reference images. With the tweaks here the tests in otk can generate reference images via:that can then be used to validate that the otk generated images are identical to the ones generated by
images