https://blue-build.org/ logo
Building x86_64-v2 instead of x86_64-v3
# questions
a
message has been deleted
r
Hi all, hi @gmpinder ! For my https://eu-os.eu project, I switched to AlmaLinux packages. They build by default for arch = amd64v3. On old hardware (think of schools), this does not run anylonger. Also not on my Thinkpad x220 test device. A PR is open to build the bootc image for amd64v2 as well. https://github.com/AlmaLinux/atomic-desktop/pull/38 It seems to me that bluebuild does not expose the --arch flag from podman, so I do not see how I could force bluebuild to pick one x86_64 over the other (unless I build on a device with only v2 support). Closest issue so far is https://github.com/blue-build/cli/issues/340 on multi-arch. For the time being, one specific arch would be good for me.
Almalinux now has a v2 variant:
Copy code
podman manifest inspect quay.io/almalinuxorg/atomic-desktop-kde | jq .manifests[].platform
{
  "architecture": "amd64",
  "os": "linux"
}
{
  "architecture": "amd64",
  "os": "linux",
  "variant": "v2"
}
Things I tried:  
Copy code
bluebuild build --platform linux/amd64/v2 recipes/recipe.yml 
error: invalid value 'linux/amd64/v2' for '--platform <PLATFORM>'
  [possible values: native, linux/amd64, linux/arm64]

  tip: a similar value exists: 'linux/amd64'
In recipe.yml:
base-image: --variant=v2 quay.io/almalinuxorg/atomic-desktop-kde
Copy code
bluebuild build --platform linux/amd64 recipes/recipe.yml
INFO  => Recipe recipes/recipe.yml is valid
INFO  => Templating for recipe at recipes/recipe.yml
ERROR => Failed:
  × invalid reference format
I also tried to set the sha256, but this did not work either.
Copy code
base-image: quay.io/almalinuxorg/atomic-desktop-kde # alternative: quay.io/fedora/fedora-kinoite
image-version: sha256:eea5219ade655f98c5c956497dd8a9a9e4096cb8dd0188b1dca38933cdc05fbc # latest is also supported if you want new updates ASAP
Gives same error as above.
g
I'll have to add this in as a platform
Got a change to add more platforms https://github.com/blue-build/cli/pull/501
r
@gmpinder Is selecting a particular image by sha256 already supported?
g
Yeah, it just requires the right syntax
I put that in the issue