I am trying to use bootc and dnf5 to add my own customizations on top of Fedora Silverblue. It’s really impressive technology and works for just about everything I have tried except for installing Google Chrome. This is a minimal example that gives the error:
FROM quay.io/fedora/fedora-silverblue:41
RUN dnf config-manager setopt google-chrome.enabled=1 && dnf -y install google-chrome-stable
RUN bootc container lint
The dnf install line fails with failed to open dir opt of /opt/google/: cpio: mkdir failed - File exists
.
I’ve read the bootc documentation and I came up with the solution of mkdir
ing /var/opt
before installing. This works in that the container is built but I don’t know if this is a good idea or even the right way to solve the issue?