rpm-ostree/src
Jonathan Lebon 58a79056a8 libpriv/scripts: Add /run/ostree-booted for scriptlets
RPM-OSTree has been pretty good so far at consuming the exact same RPMs
used for traditional OSes without modifications. This is important,
because shielding RPMs from the OSTree abstraction means we remain
compatible with a large portion of the ecosystem.

However, there are some apps that definitely require rethinking their
approach. The example right now is akmods, which has a patch proposed to
build kmods at `%post` time on OSTree systems instead of from the
daemon.[1]

In such situations, scriptlets need something to key off of for the
OSTree-specific approach. The `/run/ostree-booted` file is the de facto
API to determine if we're running on an OSTree system or not. This patch
simply extends this API so that scriptlets can naturally make use of
them.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1667014

Closes: #1750
Approved by: cgwalters
2019-02-12 14:24:48 +00:00
..
app compose: Fix install --unified-core 2019-02-05 22:26:11 +00:00
daemon app/rebase: Support local repo remotes 2019-02-05 18:03:02 +00:00
lib db: Add some error prefixing around rpmdb loading 2018-05-04 13:02:19 +00:00
libpriv libpriv/scripts: Add /run/ostree-booted for scriptlets 2019-02-12 14:24:48 +00:00