-
(Again writing a question proxying another location) A question came up about But how to e.g. work with an RPM that installs to /opt? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This of course heavily relates to an old issue: coreos/rpm-ostree#233 Some systems like FCOS make For bootc systems that are derivation points like fedora bootc we ship By shipping such content in a derived container build it will "just work" in general to install RPMs that install to To deal with applications that expect write access to a subdirectory such as |
Beta Was this translation helpful? Give feedback.
-
I've said this elsewhere but a core problem with RPMs that install in /opt is they're really trying to do two conflicting things. They're trying to be independent of the OS (separate binary path, often separate vendored C/C++ library dependencies, separate log dir often, etc). Except, by using RPM they are tied to the OS because there's just one big RPM database (in When trying to go to image based updates, we either need to pick one way or the other. Either it's lifecycled exactly with the OS, i.e. built into a derived container (and ideally binaries etc. are read-only at runtime), its logs go to the journal (or wherever regular logs are configured to go, etc.) or it's managed fully separately. A lot of similar software has resolved the tension by going fully the latter way: The software updates itself (or has a tool to update it), it isn't updated by |
Beta Was this translation helpful? Give feedback.
-
Also related to this is ostreedev/ostree#3120 where ostree has experimental first-class support for having directories like I was asked about the idea of just having a transient overlayfs on It'd probably make sense to add docs for streamlining this more. This also intersects with ostreedev/ostree#3177 a bit. |
Beta Was this translation helpful? Give feedback.
-
Q: Can I make A: Sure, but note if you put any content in there in the container image then it will just be masked at runtime. In this model then you are managing updates to
If it's problematic for |
Beta Was this translation helpful? Give feedback.
This of course heavily relates to an old issue: coreos/rpm-ostree#233
Some systems like FCOS make
/opt
a symlink to/var/opt
- it's a writable, persistent directory. This means that one can install software there per-machine, and manage it out of band. But management and updates of the app are up to the admin - and trying to install it as e.g. an RPM will run into conflicts around things like the RPM database being readonly as it's in/usr
.For bootc systems that are derivation points like fedora bootc we ship
/opt
as a regular directory. This has the opposite tradeoff!By shipping such content in a derived container build it will "just work" in general to install RPMs that install to
/opt
…