On Mon, Jan 23, 2017, at 02:03 PM, Tom Hughes wrote:

> How about you just explain here what it is you want rather than making 
> everybody go and read some bug?

OK, here's a copy of the text:

rpm-ostree is a new model for rpm packages on using ostree[0].  In order to 
implement atomic upgrades without special filesystem support, it runs %post 
scripts using rofiles-fuse[1]

This means that %post scripts, whenever replacing an existing file, must do 
create-new-then-rename, rather than open(O_TRUNC).  This is a core distinction 
between `/usr/bin/install` and `/usr/bin/cp`.

Additionally, if your %post script is generated cached state derived purely 
from /usr content (e.g. ldconfig, gtk-update-icon-cache), please consider 
moving it to /usr, so that the cache state is stored with the data. 

The initial rpm-ostree implementation of %post is here: 
https://github.com/projectatomic/rpm-ostree/pull/338

[0] https://ostree.readthedocs.io/en/latest/manual/adapting-existing/
[1] https://github.com/ostreedev/ostree/blob/master/man/rofiles-fuse.xml
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to