(In reply to Franck Bui from comment #28) > (In reply to Richard Brown from comment #27) > > > > You can not write to /usr/lib/systemd/scripts/ on a read only filesystem > > The problem happens when the system boots right, it doesn't happen when > systemd package is upgraded ? > > And how are we supposed to implement "run this script once" on these > platforms ? > > Thanks. The only time you can write to the rootfs on Kubic and CaaSP is during a package installation/upgrade - the rootfs is immutable, but the package changes are written to a new snapshot which will take effect on next boot So the only place you COULD implement this logic is in the %post I think you should not, I think this is an overly complex solution for little or no benefit. I think this is a perfect example in the flesh of why Ludwig and Thorsten were both right earlier in this thread. Please reconsider their advised solutions of a subpackage or packaged examples