Changing image base from Ublue images to vanilla Silverblue - what is the best approach?
Hi! I have a question, if I wanted to migrate my custom image's base from ublue's
I've tried doing so several times in the past w these steps:
I wonder if it would be more efficient to just create a new repo altogether?
Would appreciate any input on this!
silverblue-main to Fedora's vanilla Silverblue, what would be the best way to do so successfully?I've tried doing so several times in the past w these steps:
- Create a custom Silverblue image in my repo with
quay.io/fedora/fedora-silverblueasbase-image. This createscustom-silverblue-base - Builds just fine with the signing module
- Update my existing result image recipe.yml (let's call this
result-image) -base-imageis replaced fromghcr.io/ublue-os/silverblue-maintogchr.io/username/custom-silverblue-base result-imagebuilds just fine with the signing moduleresult-imageis deployed just fine on the target machine, boots & runs as expected- When running rpm-ostree update, it fails giving errors as such:
/etc/pki/containers and/or /etc/containers/registries.d/, but sudo ostree admin config-diff doesn't show that the files have been modified locally. Also, my cosign keys are unmodified, so this is not like the case of Bluefin's cosign keys from last year.I wonder if it would be more efficient to just create a new repo altogether?
Would appreciate any input on this!
Solution
Gave it another test - it seems like the following approach as I've described above, or simplified:
- Create
custom-silverblue-baseinREPO - Create
result-imageusingcustom-silverblue-baseasbase-image, also inREPO - Deploy & continuously update/check for updates using
rpm-ostree update
will give theError parsing signature storage configurationerrors without fail.
- Create
result-imageusingfedora/fedora-silverblueorfedora-ostree-desktops/silverbluewith a set of recipes that would have gone intocustom-silverblue-base - Deploy & continuously update/check for updates using
rpm-ostree update
works fine and doesnt' give me the parsing signature errors.
base-recipe.yml that layers basically everything that will be shared across images (repo files, bling, codecs, layers/removals of unneeded fedora packages, extensions etc), and just from-file: base-recipe.yml it in multiple image recipes. I've only tested on one machine though, will give it another try on a diff machine