In the rpm-ostree variants of Fedora, we've hit many times over the
years instances of packages wanting to perform migrations/cleanups as
part of e.g. their %post scripts. Such scripts do not work in those
variants because they run at compose time on the build server and not on
client systems (rpm-ostree also support layering RPMs on the client, but
by design the same limitations apply there).
As a result, either the migration never takes place on those variants,
or the scriptlet fails to run and breaks the compose (because rpm-ostree
runs scriptlets with a read-only /var).
We (the Fedora CoreOS Working Group) would like to submit a Change
proposal that will as a first pass recommend against scriptlets writing
to /var.[[1]] As prescribed in the Changes policy[[2]], this is a
draft PR with the suggested change for review before actually submitting
a proposal. (An eventual goal would be to forbid it completely. That
could be done as part of this Change or a follow-up Change based on
discussions with the community and FESCo.)
In the rpm-ostree variants of Fedora, we've hit many times over the
years instances of packages wanting to perform migrations/cleanups as
part of e.g. their
%postscripts. Such scripts do not work in thosevariants because they run at compose time on the build server and not on
client systems (rpm-ostree also support layering RPMs on the client, but
by design the same limitations apply there).
As a result, either the migration never takes place on those variants,
or the scriptlet fails to run and breaks the compose (because rpm-ostree
runs scriptlets with a read-only
/var).We (the Fedora CoreOS Working Group) would like to submit a Change
proposal that will as a first pass recommend against scriptlets writing
to
/var.[[1]] As prescribed in the Changes policy[[2]], this is adraft PR with the suggested change for review before actually submitting
a proposal. (An eventual goal would be to forbid it completely. That
could be done as part of this Change or a follow-up Change based on
discussions with the community and FESCo.)