config: Add a core/change-update-summary option
This commits adds and implements a boolean repo config option called "change-update-summary" which updates the summary file every time a ref changes (additions, updates, and deletions). The main impetus for this feature is that the `ostree create-usb` and `flatpak create-usb` commands depend on the repo summary being up to date. On the command line you can work around this by asking the user to run `ostree summary --update` but in the case of GNOME Software calling out to `flatpak create-usb` this wouldn't work because it's running as a user and the repo is owned by root. That strategy also means flatpak can't update the repo metadata refs for fear of invalidating the summary. Another use case for this relates to LAN updates. Specifically, the component of eos-updater that generates DNS-SD records advertising ostree refs depends on the repo summary being up to date. Since ostree_repo_regenerate_summary() now takes an exclusive lock, this should be safe to enable. However it's not enabled by default because of the performance cost, and because it's more useful on clients than servers (which likely have another mechanism for updating the summary). Fixes https://github.com/ostreedev/ostree/issues/1664 Closes: #1681 Approved by: jlebon
This commit is contained in:
1 parent
fb36b62f33
commit
6869bada49
7 files changed
+115
-14
No files matched your search
@@ -93,6 +93,16 @@ Boston, MA 02111-1307, USA.
|
||||
to <literal>false</literal>.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>change-update-summary</varname></term>
|
||||
<listitem><para>Boolean value controlling whether or not to
|
||||
automatically update the summary file after any ref is added,
|
||||
removed, or updated. This covers a superset of the cases covered by
|
||||
commit-update-summary, with the exception of orphan commits which
|
||||
shouldn't affect the summary anyway. Defaults to <literal>false</literal>.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>fsync</varname></term>
|
||||
<listitem><para>Boolean value controlling whether or not to
|
||||
|
||||
Reference in new issue
Block a user