Skip to content

Commit

Permalink
coreos-meta-translator: add metal4k support
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon committed Mar 20, 2020
1 parent 66575b4 commit eba6518
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit eba6518

Please sign in to comment.