Related docs:
Programs that package their rpms to install their files at /opt still exists, and it isn’t few, dealing with /opt on ostree systems are always a headache.
I always don’t know how to deal with the rpms that install files to /opt, the files always gone after deployed the updates from my custom images.
Few hours ago, I found ostree-state-overlay@.service, it creates a overlay layer to desired root folder, in this case, I’m talking about /opt, the user can write to /opt if they wants, and the /opt from the image can be merged(Or overwrite, if same files exists in the image) to target system’s /opt folder.
Though the runtime integrity can’t be guaranteed, but it fixed my headache.