https://blue-build.org/ logo
Where in the recipe do I query post installs?
# questions
n
I have a swap I want to do with dnf yet I cant seem to get it swapped because it doesnt exist yet when I run it where in the recipe.yml would I place a script for after its installed?
a
message has been deleted
g
The modules in a recipe file are executed from top to bottom
You can see the resulting
Containerfile
by running
bluebuild generate recipe/path/to/recipe.yml
n
right I have it at the very bottom to query it last after terra is already installed so I can swap terra package with copr package instead. while thats building on my last attempt is there a better way to query latest of bluefin-hwe? latest tag of image-version seems to cause to query for upwards of 6 minutes before getting the image version I have this
Copy code
# the base image to build on top of (FROM) and the version tag to use
base-image: ghcr.io/ublue-os/bluefin-hwe
image-version: latest # latest is also supported if you want new updates ASAP
Copy code
[21:11:11  INFO] => Templating for recipe at ./recipes/recipe.yml
[21:11:11  INFO] => Retrieving OS version from ghcr.io/ublue-os/bluefin-hwe:latest
[21:11:15 DEBUG] => Successfully inspected image ghcr.io/ublue-os/bluefin-hwe:latest!
[21:11:15  WARN] => Unable to get version via image inspection due to error:
  × Failed to parse version from metadata for ghcr.io/ublue-os/bluefin-
  │ hwe:latest
[21:11:15  WARN] => Pulling and running the image to retrieve the version. This will take a while...
g
That 6 minutes is because the bluefin image doesn't set the version label properly so we have to pull the image and run it to find the version
n
How can I fix that you think?
g
You can't, that's on upstream to change it. I've put in issues about it before for other images but they don't keep it consistent
n
Ah okay was only wondering since bazzite doesn't have this issueb
g
Yeah. The most that can be done is create an issue for them