libostree/deploy: enable composefs by default
authorJonathan Lebon <jonathan@jlebon.com>
Sat, 14 Dec 2024 13:45:19 +0000 (08:45 -0500)
committerJonathan Lebon <jonathan@jlebon.com>
Tue, 17 Dec 2024 18:30:08 +0000 (13:30 -0500)
commit9a0acd7249bb0c7f55c2bf56e5073902cd60038b
treec3c569ee8ad4a31d5497a3bea54d8eedd336e37a
parentab8a7f7855b0e0a7f3fe7214b77521268b994ce4
libostree/deploy: enable composefs by default

The composefs libostree integration has been supported for a while now
and is actively in use in various ostree/bootc-based systems. Let's
turn it on by default.

This has no effect if composefs support is not compiled in. Note also
that this does not change the default value of the `composefs.enabled`
tristate to `true`. The default is still `maybe`, but the deploy API
will now also create composefs images for `maybe`.

The reason for doing it this way is so that systems upgrading from
old libostree versions (which may either not have composefs support or
may have composefs-related bugs) will still be able to upgrade and not
trip `ostree-prepare-root` in the new deployment (which allows missing
composefs images for `maybe`).

We may in the future change the default value to `true`.

See also: https://github.com/ostreedev/ostree/issues/2867
src/libostree/ostree-sysroot-deploy.c
tests/admin-test.sh
tests/test-admin-deploy-composefs.sh