CentOS / centos-bootc

Create and maintain base bootable container images from Fedora ELN and CentOS Stream packages
https://centos.github.io/centos-bootc
Other
45 stars 27 forks source link

Fix /opt to be a directory #393

Closed cgwalters closed 7 months ago

cgwalters commented 7 months ago

Tracking this here from https://github.com/ostreedev/ostree-rs-ext/issues/607

This currently wants a patch to rpm-ostree...basically https://github.com/coreos/rpm-ostree/pull/4719/commits/7857febfc00b0d016ceda3834664d882eda9a371 special cased root.transient = true, which we were going to ship but then I got talked down (correctly, probably) to just using composefs, but not transient root.

Except as determined there we need an opt-in to configure the symlinks, which we should then flip in this repository as we always want to have the container-oriented flow.

cgwalters commented 7 months ago

https://github.com/CentOS/centos-bootc/pull/425 is part of this, but we still need to fix /opt to be a directory here. It's quite unfortunate because the rpm-ostree code really just doesn't let external things do this right now.

What I was looking at is adding an "execute arbitrary code afterwards" flow. But the real fix of course is to go to a full container-native build system.

cgwalters commented 7 months ago

https://github.com/ostreedev/ostree/pull/3214 will also help here as it will fix being able to do this in derived layers.

cgwalters commented 7 months ago

PR in https://github.com/CentOS/centos-bootc/pull/438