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

🐛 Wrong arch in the name of the img #2009

Closed
mauromorales opened this issue Nov 17, 2023 · 1 comment · Fixed by #2011
Closed

🐛 Wrong arch in the name of the img #2009

mauromorales opened this issue Nov 17, 2023 · 1 comment · Fixed by #2011
Labels
bug Something isn't working

Comments

@mauromorales
Copy link
Member

The tag of the img in a repository is correct, e.g.: tumbleweed-standard-arm64-rpi4-v2.4.2-k3sv1.28.2-k3s1-img

However, when extracted:

$ IMAGE=quay.io/kairos/opensuse:tumbleweed-standard-arm64-rpi4-v2.4.2-k3sv1.28.2-k3s1-img
$ docker run -ti --rm -v $PWD/build:/build quay.io/luet/base util unpack "$IMAGE" /build
 INFO   Downloading quay.io/kairos/opensuse:tumbleweed-standard-arm64-rpi4-v2.4.2-k3sv1.28.2-k3s1-img to /build
 INFO   Pulled: sha256:419bf5032f4b7555678fe7aed89b90363c2516f19546f994b4b7e65f0297ad35 quay.io/kairos/opensuse:tumbleweed-standard-arm64-rpi4-v2.4.2-k3sv1.28.2-k3s1-img
 INFO   Size: 2.03GiB

The resulting file, contains the wrong arch in the name:

$ ls build/*img.xz
build/kairos-opensuse-tumbleweed-standard-amd64-rpi4-v2.4.2-k3sv1.28.2+k3s1.img.xz
@mauromorales mauromorales added the bug Something isn't working label Nov 17, 2023
@mauromorales
Copy link
Member Author

mauromorales commented Nov 17, 2023

The issue seems to come from

https://github.com/kairos-io/kairos/blob/0f9499de70e24bf6cb69b6fa253daf59070e1083/Earthfile#L810C2-L810C2

Because it will assume the TARGETARCH of whichever HOST platform it is running, since it is not forced on the caller

BUILD +arm-image

However, forcing it makes the process, really slow, so maybe we need to introduce an in between step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant