ostree/man
Colin Walters a6d07b6cc3 deploy: Don't recompute verity checksums if not enabled
This fixes a truly horrific performance bug when
composefs is enabled, but fsverity is not supported
by the filesystem. We'd fall back to doing *userspace*
checksumming of all files at deployment time which was absolutely
not expected or required.

There's really an immense amount of technical debt
here, such as the confusion between `ex-integity.composefs`
vs the prepare-root config, how we handle "torn" states
where some objects don't have verity enabled but some do,
etc.

The ostree composefs state has two modes:

- signed: We need to enforce fsverity
- unsigned: Best effort resilience

So we fix this by making the deploy path to make verity
"opportunistic" - if the ioctl gives us the data, then we
add it to the composefs.

However, this code path is also invoked when we're
computing the expected composefs digest to inject
as commit metadata, and *that* API must work regardless
of whether the target repo has fsverity enabled as
it may operate on a build server.

One lucky thing in all of this: When I went to add
the "checkout composefs" API I added a stub `GVariant`
for options extensibility, which we now use.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-10-28 09:31:34 -04:00
..
html.xsl man: Use custom XSL stylesheet for HTML output 2022-04-08 19:25:32 -06:00
index.xml Add ostree admin post-copy command 2023-11-14 10:15:19 +01:00
ostree-admin-cleanup.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-admin-config-diff.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-admin-deploy.xml man: Two finalization fixes 2023-11-27 13:50:07 -05:00
ostree-admin-init-fs.xml init-fs: Add --epoch=2 2024-04-12 16:10:36 -04:00
ostree-admin-instutil.xml man: Fix ostree-admin-instutil subcommands 2022-05-19 18:48:17 -05:00
ostree-admin-lock-finalization.xml man: Two finalization fixes 2023-11-27 13:50:07 -05:00
ostree-admin-os-init.xml Add ostree admin stateroot-init as alias for os-init 2023-08-17 16:46:02 -04:00
ostree-admin-pin.xml admin/pin: Add commands to pin booted, pending and rollback deployments 2024-01-29 11:44:20 +00:00
ostree-admin-post-copy.xml Add ostree admin post-copy command 2023-11-14 10:15:19 +01:00
ostree-admin-set-default.xml Add admin set-default 2023-08-03 15:09:57 -04:00
ostree-admin-set-origin.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-admin-stateroot-init.xml Add ostree admin stateroot-init as alias for os-init 2023-08-17 16:46:02 -04:00
ostree-admin-status.xml status: Rename query-booted to is-default 2024-01-09 15:24:34 +00:00
ostree-admin-switch.xml man: Fix typo in ostree-admin-switch 2022-02-12 18:48:35 +01:00
ostree-admin-undeploy.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-admin-unlock.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-admin-upgrade.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-admin.xml Add ostree admin post-copy command 2023-11-14 10:15:19 +01:00
ostree-cat.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-checkout.xml deploy: Don't recompute verity checksums if not enabled 2024-10-28 09:31:34 -04:00
ostree-checksum.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-commit.xml repo: Add an option to label /usr/etc as /etc 2023-10-11 13:25:08 -04:00
ostree-config.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-create-usb.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-diff.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-export.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-find-remotes.xml bin: Cleanup documentation of --cache-dir option 2023-02-07 22:59:20 -07:00
ostree-fsck.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-gpg-sign.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-init.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-log.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-ls.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-prepare-root.xml prepare-root: Add ostree.prepare-root.composefs 2024-07-11 17:04:09 -04:00
ostree-prune.xml man/prune, bash: Add --commit-only flag for ostree prune 2022-02-25 18:32:25 -05:00
ostree-pull-local.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-pull.xml ostree-repo-pull: add options to configure retry behavior 2023-10-17 21:00:37 -04:00
ostree-refs.xml bin/refs: Add option to print revisions 2023-02-07 22:59:30 -07:00
ostree-remote.xml bin/remote-refs: Add option to print revisions 2023-02-07 22:59:30 -07:00
ostree-reset.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-rev-parse.xml cli/rev-parse: Add --single option 2022-08-18 11:08:17 -04:00
ostree-show.xml bin/show: Add options to list metadata keys 2023-02-07 22:59:30 -07:00
ostree-sign.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-state-overlay@.service.xml Add concept of state overlays 2024-01-09 23:20:41 -05:00
ostree-static-delta.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree-summary.xml lib/repo: Add commit version metadata to summary metadata 2022-02-04 14:28:11 -07:00
ostree.repo-config.xml ostree.repo-config(5): Fix a typo 2024-02-11 15:56:53 +00:00
ostree.repo.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
ostree.xml More fully drop trivial-httpd entrypoint 2023-08-03 15:10:11 -04:00
rofiles-fuse.xml Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00