Where in the recipe do I query post installs?

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?
7 Replies
Luke Skywunker
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
Nix Eyes
Nix EyesOP5d ago
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
# 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
# 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
[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...
[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...
Luke Skywunker
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
Nix Eyes
Nix EyesOP5d ago
How can I fix that you think?
Luke Skywunker
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
Nix Eyes
Nix EyesOP5d ago
Ah okay was only wondering since bazzite doesn't have this issueb
Luke Skywunker
Yeah. The most that can be done is create an issue for them

Did you find this page helpful?