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

coreos-meta-translator: add metal4k support #87

Merged
merged 1 commit into from
Mar 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions coreos-meta-translator/trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ def artifact(i):
# metal specific additions
arch_dict["media"]["metal"] = arch_dict["media"].get("metal", {})
arch_dict["media"]["metal"]["artifacts"] = arch_dict["media"]["metal"].get("artifacts", {})
i = input_.get("images", {}).get("metal4k", None)
if i is not None:
# the 4k image is kinda weird; we want it at the same level as e.g.
# the regular 512b image, which normally is under `raw.xz`
ext = get_extension(i['path'], 'metal4k', arch)
arch_dict["media"]["metal"]["artifacts"][f"4k.{ext}"] = {
"disk": artifact(i)
}
i = input_.get("images", {}).get("iso", None)
if i is not None:
arch_dict["media"]["metal"]["artifacts"]["installer.iso"] = {
Expand Down