ostree.git
5 years agoMerge pull request #2244 from lucab/ups/docs-release-guide
OpenShift Merge Robot [Thu, 19 Nov 2020 14:40:33 +0000 (15:40 +0100)]
Merge pull request #2244 from lucab/ups/docs-release-guide

templates: add release-checklist

5 years agoMerge pull request #2243 from lucab/ups/workflow-checkout
OpenShift Merge Robot [Wed, 18 Nov 2020 16:14:05 +0000 (17:14 +0100)]
Merge pull request #2243 from lucab/ups/workflow-checkout

workflow/release: further refinements

5 years agotemplates: add release-checklist
Luca BRUNO [Wed, 18 Nov 2020 11:14:15 +0000 (11:14 +0000)]
templates: add release-checklist

This collects all release steps in a release-checklist template.

5 years agoworkflow/release: further refinements
Luca BRUNO [Wed, 18 Nov 2020 10:24:19 +0000 (10:24 +0000)]
workflow/release: further refinements

This tweaks the release GH workflow further so that it only triggers
when the `configure.ac` file (which owns the version) changes.
Plus it properly checkouts the PR branch to avoid wrongly looking
at a synthetic merge commit.

5 years agoMerge pull request #2242 from stb-tester/tarball-import-xattrs
OpenShift Merge Robot [Tue, 17 Nov 2020 21:38:32 +0000 (22:38 +0100)]
Merge pull request #2242 from stb-tester/tarball-import-xattrs

ostree commit --tree=tar: Import xattrs from tarballs

5 years agoostree commit --tree=tar: Import xattrs from tarballs
William Manley [Tue, 17 Nov 2020 00:46:10 +0000 (00:46 +0000)]
ostree commit --tree=tar: Import xattrs from tarballs

If you specify an `xattr_callback` the xattrs will still be taken from
there for now.

5 years agoMerge pull request #2241 from lucab/release-2020.8
OpenShift Merge Robot [Tue, 17 Nov 2020 15:18:58 +0000 (16:18 +0100)]
Merge pull request #2241 from lucab/release-2020.8

Release 2020.8

5 years agoconfigure: post-release version bump
Luca BRUNO [Tue, 17 Nov 2020 10:50:56 +0000 (10:50 +0000)]
configure: post-release version bump

5 years agoRelease 2020.8
Luca BRUNO [Tue, 17 Nov 2020 10:14:16 +0000 (10:14 +0000)]
Release 2020.8

5 years agoMerge pull request #2240 from lucab/ups/ci-pr-title
OpenShift Merge Robot [Mon, 16 Nov 2020 19:33:46 +0000 (20:33 +0100)]
Merge pull request #2240 from lucab/ups/ci-pr-title

workflows/release: pattern-match on PR title

5 years agoworkflows/release: pattern-match on PR title
Luca BRUNO [Mon, 16 Nov 2020 17:08:52 +0000 (17:08 +0000)]
workflows/release: pattern-match on PR title

This adds an additional condition in order to run sanity check all
PRs starting with `Release` (case-insensitive).

5 years agoMerge pull request #2239 from lucab/ups/gh-actions
OpenShift Merge Robot [Mon, 16 Nov 2020 16:00:01 +0000 (17:00 +0100)]
Merge pull request #2239 from lucab/ups/gh-actions

ci: run ci-release-build.sh on GitHub

5 years agoci: run ci-release-build.sh on GitHub
Luca BRUNO [Mon, 16 Nov 2020 11:05:52 +0000 (11:05 +0000)]
ci: run ci-release-build.sh on GitHub

This adds a GitHub action in order to run ci-release-build.sh on
release PRs (detected via the `kind/release` label).

5 years agoMerge pull request #2232 from cgwalters/deploy-docs
OpenShift Merge Robot [Thu, 12 Nov 2020 18:40:28 +0000 (19:40 +0100)]
Merge pull request #2232 from cgwalters/deploy-docs

deployment: Add a bunch of docs and fix annotations

5 years agoMerge pull request #2235 from cgwalters/checkout-some-new-style
OpenShift Merge Robot [Thu, 12 Nov 2020 08:34:44 +0000 (09:34 +0100)]
Merge pull request #2235 from cgwalters/checkout-some-new-style

bin/checkout: Port some to new style

5 years agoMerge pull request #2231 from cgwalters/some-nullable-annotations
OpenShift Merge Robot [Thu, 12 Nov 2020 02:01:22 +0000 (03:01 +0100)]
Merge pull request #2231 from cgwalters/some-nullable-annotations

deployment: Ensure query_deployments_for returns nullable values

5 years agodeployment: Ensure query_deployments_for returns nullable values
Colin Walters [Fri, 6 Nov 2020 19:24:58 +0000 (19:24 +0000)]
deployment: Ensure query_deployments_for returns nullable values

Since that's a common case; hit this while working on rpm-ostree
code using the ostree-rs bindings.

5 years agodeployment: Add a bunch of docs and fix annotations
Colin Walters [Fri, 6 Nov 2020 19:38:40 +0000 (19:38 +0000)]
deployment: Add a bunch of docs and fix annotations

We were missing docs for these, also add some nullability annotations.
Motivated by using these from the Rust bindings.

5 years agobin/checkout: Port some to new style
Colin Walters [Mon, 9 Nov 2020 19:03:12 +0000 (19:03 +0000)]
bin/checkout: Port some to new style

I was reading this code for unrelated reasons and noticed it
was still old style; port most (but not all) to new style.

5 years agoMerge pull request #2236 from lucab/ups/travis-xenial
OpenShift Merge Robot [Wed, 11 Nov 2020 16:01:13 +0000 (17:01 +0100)]
Merge pull request #2236 from lucab/ups/travis-xenial

ci/travis: move to newer base distro

5 years agoci/travis: move to newer base distro
Luca BRUNO [Tue, 10 Nov 2020 13:06:34 +0000 (13:06 +0000)]
ci/travis: move to newer base distro

This removes the old pinned distro (Ubuntu Trusty 14.04) from Travis,
moving to the newer default distro (Ubuntu Xenial 16.04).

5 years agoMerge pull request #2233 from cgwalters/repo-annotations
OpenShift Merge Robot [Mon, 9 Nov 2020 18:56:24 +0000 (18:56 +0000)]
Merge pull request #2233 from cgwalters/repo-annotations

sysroot: Fix up some GI nullable annotations

5 years agosysroot: Fix up some GI nullable annotations
Colin Walters [Fri, 6 Nov 2020 20:04:54 +0000 (20:04 +0000)]
sysroot: Fix up some GI nullable annotations

Hit `ostree_sysroot_repo()` shouldn't be nullable while using
the ostree Rust bindings.

5 years agoMerge pull request #2228 from jlebon/pr/drop-volatile
OpenShift Merge Robot [Tue, 3 Nov 2020 22:36:14 +0000 (17:36 -0500)]
Merge pull request #2228 from jlebon/pr/drop-volatile

Drop use of `volatile`

5 years agoMerge pull request #2230 from alexlarsson/pull-dont-save-passed-in-summary
OpenShift Merge Robot [Tue, 3 Nov 2020 17:35:06 +0000 (12:35 -0500)]
Merge pull request #2230 from alexlarsson/pull-dont-save-passed-in-summary

pull: Don't save into cache passed in GByte summaries

5 years agoMerge pull request #2229 from dbnicholson/static-delta-generate-annotations
OpenShift Merge Robot [Tue, 3 Nov 2020 14:32:54 +0000 (15:32 +0100)]
Merge pull request #2229 from dbnicholson/static-delta-generate-annotations

lib/deltas: Annotate from checksum as nullable

5 years agopull: Don't save into cache passed in GByte summaries
Alexander Larsson [Tue, 3 Nov 2020 10:48:33 +0000 (11:48 +0100)]
pull: Don't save into cache passed in GByte summaries

The cache shouldn't be affected by the user passing in some other
summary as it may not be the "official one".

I ran into this in flatpak where the passed summary was correct, but
the re-saving of the cache updated the mtime of the cached file which
led to later http If-Modified-Since calls failing to update.

5 years agolib/deltas: Annotate from checksum as nullable
Dan Nicholson [Mon, 2 Nov 2020 23:42:30 +0000 (16:42 -0700)]
lib/deltas: Annotate from checksum as nullable

Without this you can't create a scratch delta from GI. While here,
switch the deprecated allow-none annotations to nullable.

5 years agoDrop use of `volatile`
Jonathan Lebon [Mon, 2 Nov 2020 19:53:26 +0000 (14:53 -0500)]
Drop use of `volatile`

As detailed in
gitlab.gnome.org/GNOME/glib/-/issues/600#note_877282, volatile
isn't actually needed in these contexts because the atomic operations
already give us strong enough guarantees. In GCC 11, this triggers a
diagnostic due to the volatile qualifier getting dropped anyway.

There is a WIP to do the same in glib:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719

This obsoletes this downstream patch:
https://src.fedoraproject.org/rpms/ostree/c/b8c5a6fb

5 years agoMerge pull request #2226 from alexlarsson/fix-gir-arg
OpenShift Merge Robot [Wed, 28 Oct 2020 17:31:50 +0000 (13:31 -0400)]
Merge pull request #2226 from alexlarsson/fix-gir-arg

ostree_repo_gpg_sign_data: Fix API doc argument name

5 years agoostree_repo_gpg_sign_data: Fix API doc argument name
Alexander Larsson [Wed, 28 Oct 2020 14:53:18 +0000 (15:53 +0100)]
ostree_repo_gpg_sign_data: Fix API doc argument name

I got:
src/libostree/ostree-repo.c:5232: Warning: OSTree: ostree_repo_gpg_sign_data: unknown parameter 'out_signature' in documentation comment, should be 'out_signatures'

5 years agoMerge pull request #2224 from stb-tester/bootloader-refactorings
OpenShift Merge Robot [Wed, 28 Oct 2020 10:39:57 +0000 (06:39 -0400)]
Merge pull request #2224 from stb-tester/bootloader-refactorings

Bootloader probing and construction refactoring

5 years agoMerge pull request #2225 from jlebon/pr/clear-timer
OpenShift Merge Robot [Tue, 27 Oct 2020 19:10:58 +0000 (15:10 -0400)]
Merge pull request #2225 from jlebon/pr/clear-timer

lib/fetch-curl: Unref timeout source

5 years agolib/fetch-curl: Unref timeout source
Jonathan Lebon [Tue, 27 Oct 2020 15:58:14 +0000 (11:58 -0400)]
lib/fetch-curl: Unref timeout source

The timeout timer should always be one-shot, so let's just always
destroy it in the callback. The main context has its own ref on it, so
it won't be freed behind its back.

This *should* fix a leak that was brought up in
https://bugzilla.redhat.com/show_bug.cgi?id=1891761.

Reported-by: Milan Crha <mcrha@redhat.com>
5 years agolib/fetcher-curl: Use G_SOURCE_REMOVE instead of FALSE
Jonathan Lebon [Tue, 27 Oct 2020 15:57:00 +0000 (11:57 -0400)]
lib/fetcher-curl: Use G_SOURCE_REMOVE instead of FALSE

They're equivalent, though I prefer the former because it's more
descriptive and it makes it really obvious that it's a `GSource`
callback.

5 years agofixup! Refactor `ostree_sysroot_query_bootloader`
William Manley [Tue, 27 Oct 2020 13:24:46 +0000 (13:24 +0000)]
fixup! Refactor `ostree_sysroot_query_bootloader`

5 years agofixup! Refactor: Centralise choosing the appropriate bootloader
William Manley [Tue, 27 Oct 2020 12:35:29 +0000 (12:35 +0000)]
fixup! Refactor: Centralise choosing the appropriate bootloader

5 years agoTests: Refactor bootloader-entries-crosscheck
William Manley [Tue, 14 Jul 2020 12:32:30 +0000 (13:32 +0100)]
Tests: Refactor bootloader-entries-crosscheck

I've made this use functions to make it easier to add support for more
bootloaders.  Seeing as there will be a big diff anyway I've also adjusted
the formatting to make it pep8 compliant.

5 years agoRefactor `ostree_sysroot_query_bootloader`
William Manley [Tue, 14 Jul 2020 11:53:17 +0000 (12:53 +0100)]
Refactor `ostree_sysroot_query_bootloader`

This is more regular, so will make it easier to add more bootloader types
in the future.

5 years agoAdd support for explicitly requesting any specific bootloader type
William Manley [Mon, 6 Jul 2020 15:12:29 +0000 (16:12 +0100)]
Add support for explicitly requesting any specific bootloader type

...with the `sysroot.bootloader` configuration option.  This can be useful
when converting a system to use `ostree` which doesn't currently have a
bootloader configuration that `ostree` can automatically detect, and is
also useful in combination with the `--sysroot` option when provisioning a
rootfs for systems other than the one you're running `ostree admin deploy`
on.

5 years agoRefactor: sysroot.bootloader: Store enum value rather than string
William Manley [Mon, 6 Jul 2020 14:50:28 +0000 (15:50 +0100)]
Refactor: sysroot.bootloader: Store enum value rather than string

It's easier to extend and it centralises the config parsing.  In other
places we will no longer need to use `g_str_equal` to match these values,
a `switch` statement will be sufficient.

5 years agoRefactor: Centralise choosing the appropriate bootloader
William Manley [Mon, 6 Jul 2020 13:54:31 +0000 (14:54 +0100)]
Refactor: Centralise choosing the appropriate bootloader

In preparation for enhancing `_ostree_sysroot_query_bootloader`

5 years agoostree_repo_get_bootloader: Document transfer none
William Manley [Mon, 6 Jul 2020 13:58:35 +0000 (14:58 +0100)]
ostree_repo_get_bootloader: Document transfer none

I think this may affect bindings too.

5 years agoMerge pull request #2188 from alexlarsson/delta-indexes
OpenShift Merge Robot [Fri, 23 Oct 2020 13:05:24 +0000 (09:05 -0400)]
Merge pull request #2188 from alexlarsson/delta-indexes

Add indexes for deltas outside of the summary

5 years agoostree pull: Add more g_debug spew around fetching deltas
Alexander Larsson [Tue, 20 Oct 2020 13:51:08 +0000 (15:51 +0200)]
ostree pull: Add more g_debug spew around fetching deltas

This is useful to debug what is happening when downloading via deltas.

5 years agoAdd ostree_repo_gpg_sign_data()
Alexander Larsson [Tue, 20 Oct 2020 06:37:35 +0000 (08:37 +0200)]
Add ostree_repo_gpg_sign_data()

This is similar to ostree_sign_data() but for the old gpg code.
Flatpak will need this to reproduce a signed summary.

5 years agotests: Add a testcase to ensure we're not using the summary if we don't need it
Alexander Larsson [Fri, 9 Oct 2020 14:30:29 +0000 (16:30 +0200)]
tests: Add a testcase to ensure we're not using the summary if we don't need it

With deltas outside the summary, if a commit is specified when pulling
we don't download the summary. Verify this.

5 years agopull: Only download summary if we need it for the pull operation
Alexander Larsson [Fri, 23 Oct 2020 11:05:25 +0000 (13:05 +0200)]
pull: Only download summary if we need it for the pull operation

If we have a commit id for all the refs we're pulling, and if we
don't need the summary to list all the refs when mirroring then the
only reason to download the summary is for the list of deltas.

With the new "indexed-deltas" property in the config file (and mirrored
to the summary file) we can detect when we don't need the summary for
deltas and completely avoid downloading it then.

5 years agodeltas: Set `indexed-deltas` key in the config and summary
Alexander Larsson [Fri, 9 Oct 2020 08:55:52 +0000 (10:55 +0200)]
deltas: Set `indexed-deltas` key in the config and summary

Clients can use these during pull and avoid downloading the summary if
needed, or use the indexed-deltas instead of relying on the ones in
the summary which may be left out.

5 years agodeltas: Take a shared repo lock while reindexing deltas
Alexander Larsson [Fri, 9 Oct 2020 08:15:42 +0000 (10:15 +0200)]
deltas: Take a shared repo lock while reindexing deltas

This ensures we're not racing with a prune operation that can be removing
the delta indexes we're relying on.

5 years agodeltas: Add tests for delta indexes
Alexander Larsson [Tue, 1 Sep 2020 14:00:08 +0000 (16:00 +0200)]
deltas: Add tests for delta indexes

This tests generation of the index as well as using it when pulling

5 years agodeltas: Use delta indexes when pulling
Alexander Larsson [Tue, 1 Sep 2020 12:52:49 +0000 (14:52 +0200)]
deltas: Use delta indexes when pulling

If there is no delta index in the summary, try to fetch the
delta index for the commit we're going to and use that to find the
delta (if any).

5 years agodeltas: Add CLI ops to list and reindex delta-indexes
Alexander Larsson [Tue, 1 Sep 2020 10:28:17 +0000 (12:28 +0200)]
deltas: Add CLI ops to list and reindex delta-indexes

5 years agodeltas: Make ostree_repo_static_delta_reindex() public
Alexander Larsson [Mon, 12 Oct 2020 13:57:53 +0000 (15:57 +0200)]
deltas: Make ostree_repo_static_delta_reindex() public

It is useful to be able to trigger this without having to regenerate
the summary. For example, if you are not using summaries, or ar generating
the summaries yourself.

5 years agodeltas: Add and document no-deltas-in-summary config option
Alexander Larsson [Tue, 1 Sep 2020 10:26:17 +0000 (12:26 +0200)]
deltas: Add and document no-deltas-in-summary config option

By default this is FALSE to keep existing clients working.

5 years agodeltas: Update delta indexes when updating summary
Alexander Larsson [Tue, 1 Sep 2020 10:05:36 +0000 (12:05 +0200)]
deltas: Update delta indexes when updating summary

When we update the summary file (and its list of deltas) we also update
all delta indexes. The index format is a single `a{sv}` variant identical
to the metadata-part of the summary with (currently) only the
`ostree.static-deltas` key.

Since we expect most delta indexes to change rarely, we avoid
unnecessary writes when reindexing. New indexes are compared to
existing ones and only the changed ones are written to disk.  This
avoids unnecessary write load and mtime changes on the repo server.

5 years agodeltas: Add ostree_repo_list_static_delta_indexes() function
Alexander Larsson [Tue, 1 Sep 2020 10:03:40 +0000 (12:03 +0200)]
deltas: Add ostree_repo_list_static_delta_indexes() function

This lists all the available delta indexes.

5 years agodeltas: Add _ostree_get_relative_static_delta_index_path()
Alexander Larsson [Tue, 1 Sep 2020 10:00:32 +0000 (12:00 +0200)]
deltas: Add _ostree_get_relative_static_delta_index_path()

This gets the subpath for a delta index file, which is of the form
"delta-indexes/$commit.index", that contains all the deltas going
to the particular commit.

5 years agoMerge pull request #2205 from pwithnall/etags-and-last-modified
OpenShift Merge Robot [Thu, 22 Oct 2020 22:20:23 +0000 (18:20 -0400)]
Merge pull request #2205 from pwithnall/etags-and-last-modified

Add support for ETag and Last-Modified headers for summary and summary.sig

5 years agotests: Split RFC 2616 date parsing code out and add tests
Philip Withnall [Fri, 16 Oct 2020 16:05:54 +0000 (17:05 +0100)]
tests: Split RFC 2616 date parsing code out and add tests

This makes it testable, and increases its test coverage too 100% of
lines, as measured by `make coverage`.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
5 years agoostree/trivial-httpd: Add Last-Modified/ETag support
Philip Withnall [Fri, 9 Oct 2020 17:46:06 +0000 (18:46 +0100)]
ostree/trivial-httpd: Add Last-Modified/ETag support

This is basic support for the
Last-Modified/ETag/If-Modified-Since/If-None-Match headers. It’s not
high performance, and doesn’t support all of the related caching
features (like the If-Match header, etc.).

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
5 years agotests: Add simple test for summary file caching
Philip Withnall [Fri, 9 Oct 2020 17:34:55 +0000 (18:34 +0100)]
tests: Add simple test for summary file caching

This test would have actually passed before the summary file caching
changes (in the previous few commits) were added, as the `summary.sig`
essentially acted as the ETag for the summary file, and itself wasn’t
updated on disk if it didn’t change when querying the server.

Actually testing that the HTTP caching headers are working to reduce
HTTP traffic would require test hooks into the pull code or the
trivial-httpd server, neither of which I have the time to add at the
moment.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
5 years agolib/pull: Hook up HTTP caching headers for summary and summary.sig
Philip Withnall [Tue, 29 Sep 2020 09:51:26 +0000 (10:51 +0100)]
lib/pull: Hook up HTTP caching headers for summary and summary.sig

As `summary` and `summary.sig` aren’t immutable, HTTP requests to
download them can be optimised by sending the `If-None-Match` and
`If-Modified-Since` headers to avoid unnecessarily re-downloading them
if they haven’t changed since last being checked.

Hook them up to the new support for that in the fetcher.

The `ETag` and `Last-Modified` for each file in the cache are stored as
the `user.etag` xattr and the mtime, respectively. For flatpak, for
example, this affects the cached files in
`~/.local/share/flatpak/repo/tmp/cache/summaries`.

If xattrs aren’t supported, or if the server doesn’t support the caching
headers, the pull behaviour is unchanged from before.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
5 years agolibostree: Add support for ETag and Last-Modified headers
Philip Withnall [Thu, 24 Sep 2020 16:49:48 +0000 (17:49 +0100)]
libostree: Add support for ETag and Last-Modified headers

Add support in the soup and curl fetchers to send the `If-None-Match`
and `If-Modified-Since` request headers, and pass on the `ETag` and
`Last-Modified` response headers.

This currently introduces no functional changes, but once call sites
provide the appropriate integration, this will allow HTTP caching to
happen with requests (typically with metadata requests, where the data
is not immutable due to being content-addressed). That should reduce
bandwidth requirements.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
5 years agoMerge pull request #2222 from fkrull/patch-v2020.7
OpenShift Merge Robot [Tue, 20 Oct 2020 20:48:37 +0000 (16:48 -0400)]
Merge pull request #2222 from fkrull/patch-v2020.7

lib: add missing GI annotation

5 years agoMerge pull request #2221 from kelvinfan001/fix-docs
OpenShift Merge Robot [Mon, 19 Oct 2020 18:11:50 +0000 (14:11 -0400)]
Merge pull request #2221 from kelvinfan001/fix-docs

docs: Fix various typos

5 years agodocs: Fix various typos
Kelvin Fan [Thu, 15 Oct 2020 23:51:44 +0000 (19:51 -0400)]
docs: Fix various typos

5 years agolib: fix GI parameter tags
Felix Krull [Sat, 17 Oct 2020 20:14:09 +0000 (22:14 +0200)]
lib: fix GI parameter tags

5 years agoMerge pull request #2219 from jlebon/pr/fix-inode-print-format
OpenShift Merge Robot [Thu, 15 Oct 2020 20:15:37 +0000 (16:15 -0400)]
Merge pull request #2219 from jlebon/pr/fix-inode-print-format

ostree-prepare-root: print st_dev and st_ino as 64-bit ints

5 years agoMerge pull request #2218 from cgwalters/travis-32bit
OpenShift Merge Robot [Thu, 15 Oct 2020 19:27:48 +0000 (15:27 -0400)]
Merge pull request #2218 from cgwalters/travis-32bit

travis: Add a 32 bit build

5 years agoostree-prepare-root: print st_dev and st_ino as 64-bit ints
Jonathan Lebon [Thu, 15 Oct 2020 16:05:34 +0000 (12:05 -0400)]
ostree-prepare-root: print st_dev and st_ino as 64-bit ints

This matches what systemd does and should work fine on all platforms.

Possibly resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1888436

5 years agotravis: Add a 32 bit build
Colin Walters [Thu, 15 Oct 2020 13:35:40 +0000 (09:35 -0400)]
travis: Add a 32 bit build

In the past we've had 32 bit bugs that were caught by
the compiler, let's add this to Travis.

5 years agoMerge pull request #2215 from cgwalters/fd-transfer
OpenShift Merge Robot [Tue, 13 Oct 2020 22:45:13 +0000 (00:45 +0200)]
Merge pull request #2215 from cgwalters/fd-transfer

deploy: Remove (transfer none) from fd arg

5 years agoMerge pull request #2214 from cgwalters/release-2020-7
OpenShift Merge Robot [Tue, 13 Oct 2020 22:18:49 +0000 (00:18 +0200)]
Merge pull request #2214 from cgwalters/release-2020-7

Release 2020.7

5 years agodeploy: Remove (transfer none) from fd arg
Colin Walters [Tue, 13 Oct 2020 21:39:18 +0000 (17:39 -0400)]
deploy: Remove (transfer none) from fd arg

GI complains.  And in general one needs to assume that file
descriptors aren't stolen.

5 years agoPost-release version bump
Colin Walters [Tue, 13 Oct 2020 18:33:14 +0000 (14:33 -0400)]
Post-release version bump

5 years agoRelease 2020.7
Colin Walters [Tue, 13 Oct 2020 18:31:26 +0000 (14:31 -0400)]
Release 2020.7

5 years agoMerge pull request #2213 from alexlarsson/summary-bugfixes
OpenShift Merge Robot [Thu, 8 Oct 2020 19:18:34 +0000 (15:18 -0400)]
Merge pull request #2213 from alexlarsson/summary-bugfixes

Various fixes from the indexed-summaries branch

5 years agosignatures: Fix leak in _sign_detached_metadata_append()
Alexander Larsson [Wed, 16 Sep 2020 13:54:03 +0000 (15:54 +0200)]
signatures: Fix leak in _sign_detached_metadata_append()

This needs to ref_sink the returned variant, as it is used with g_autoptr
in the callers.

5 years agofetch_summary_with_options: Fix n-network-retries option parsing
Alexander Larsson [Wed, 16 Sep 2020 10:09:41 +0000 (12:09 +0200)]
fetch_summary_with_options: Fix n-network-retries option parsing

"&u" is not a valid gvariant format string, it should just be "u".

5 years agoostree_repo_find_remotes_async: Fix leak of summary
Alexander Larsson [Mon, 14 Sep 2020 11:52:10 +0000 (13:52 +0200)]
ostree_repo_find_remotes_async: Fix leak of summary

We were creating a GVariant from a GBytes and storing it in an
g_autoptr without ref_sinking it.

5 years agoMerge pull request #2212 from jlebon/pr/packit-tweak
OpenShift Merge Robot [Wed, 7 Oct 2020 19:34:22 +0000 (15:34 -0400)]
Merge pull request #2212 from jlebon/pr/packit-tweak

ci: Make Packit ignore downstream patches

5 years agoMerge pull request #2211 from jlebon/pr/close-fd
OpenShift Merge Robot [Wed, 7 Oct 2020 19:23:43 +0000 (15:23 -0400)]
Merge pull request #2211 from jlebon/pr/close-fd

lib/deploy: Don't leak fd when checksumming dtbs

5 years agoci: Make Packit ignore downstream patches
Jonathan Lebon [Wed, 7 Oct 2020 19:04:17 +0000 (15:04 -0400)]
ci: Make Packit ignore downstream patches

We don't really carry "Fedora-only" patches in dist-git. So we want to
nuke all the patches which exist there.

Follow-up to #2210.

5 years agolib/deploy: Don't leak fd when checksumming dtbs
Jonathan Lebon [Wed, 7 Oct 2020 18:44:25 +0000 (14:44 -0400)]
lib/deploy: Don't leak fd when checksumming dtbs

Likely the root of https://bugzilla.redhat.com/show_bug.cgi?id=1886149.

5 years agoMerge pull request #2210 from jlebon/pr/packit
OpenShift Merge Robot [Wed, 7 Oct 2020 13:46:14 +0000 (09:46 -0400)]
Merge pull request #2210 from jlebon/pr/packit

Add Packit integration

5 years agoAdd Packit integration
Jonathan Lebon [Sat, 3 Oct 2020 15:23:49 +0000 (11:23 -0400)]
Add Packit integration

This is a basic `.packit.yaml` integration file which will allow us have
continuous builds of OSTree in cosa and upstream CI. If things go well,
we'll likely deploy this in other build tools like rpm-ostree.

Prompted by wanting to get #2155 out to unblock
https://github.com/coreos/rpm-ostree/pull/2170.

5 years agoMerge pull request #2198 from cgwalters/no-hardlink-zerosize
OpenShift Merge Robot [Mon, 5 Oct 2020 20:06:38 +0000 (22:06 +0200)]
Merge pull request #2198 from cgwalters/no-hardlink-zerosize

checkout: Don't hardlink zero sized files

5 years agoMerge pull request #2209 from travier/docs-fixup
OpenShift Merge Robot [Mon, 5 Oct 2020 19:50:00 +0000 (21:50 +0200)]
Merge pull request #2209 from travier/docs-fixup

docs: Fix URL in Jekyll _config.yml

5 years agodocs: Fix URL in Jekyll _config.yml
Timothée Ravier [Mon, 5 Oct 2020 19:10:31 +0000 (21:10 +0200)]
docs: Fix URL in Jekyll _config.yml

5 years agoMerge pull request #2208 from cgwalters/bump-libglnx
OpenShift Merge Robot [Mon, 5 Oct 2020 18:56:35 +0000 (20:56 +0200)]
Merge pull request #2208 from cgwalters/bump-libglnx

libglnx: Bump to master

5 years agoMerge pull request #2207 from travier/docs
OpenShift Merge Robot [Mon, 5 Oct 2020 18:19:29 +0000 (20:19 +0200)]
Merge pull request #2207 from travier/docs

docs: Add GitHub Pages support

5 years agolibglnx: Bump to master
Colin Walters [Mon, 5 Oct 2020 18:04:21 +0000 (14:04 -0400)]
libglnx: Bump to master

To pull in the fix for `/var/tmp` on NixOS but also
on general principle.

Update submodule: libglnx

```
Colin Walters (1):
      xattrs: Add better error prefixing

Rebecca Turner (2):
      glnx-fdio: try $TMPDIR if /var/tmp doesn't exist
      glnx-fdio: use $TMPDIR if set
```

5 years agoMerge pull request #2155 from jlebon/pr/add-initrds
OpenShift Merge Robot [Fri, 2 Oct 2020 20:41:01 +0000 (16:41 -0400)]
Merge pull request #2155 from jlebon/pr/add-initrds

lib/deploy: Add support for overlay initrds

5 years agoREADME: Update and mention new docs
Timothée Ravier [Fri, 2 Oct 2020 12:40:16 +0000 (14:40 +0200)]
README: Update and mention new docs

5 years agodocs: Move historical README to the docs
Timothée Ravier [Fri, 2 Oct 2020 12:38:20 +0000 (14:38 +0200)]
docs: Move historical README to the docs

5 years agodocs: Move and update pages from the manual
Timothée Ravier [Fri, 2 Oct 2020 12:34:33 +0000 (14:34 +0200)]
docs: Move and update pages from the manual

5 years agodocs: Update Contributing and tutorial pages
Timothée Ravier [Wed, 30 Sep 2020 17:22:29 +0000 (19:22 +0200)]
docs: Update Contributing and tutorial pages

5 years agocheckout: Don't hardlink zero sized files
Colin Walters [Wed, 16 Sep 2020 00:35:33 +0000 (00:35 +0000)]
checkout: Don't hardlink zero sized files

Alternative to https://github.com/ostreedev/ostree/pull/2197

Python's (usually) zero-sized `__init__.py` files can provoke
us hitting the hardlink limits on some filesystems (`EMLINK`).
At least one Fedora rpm-ostree user hit this.

The benefits of hardlinking here are quite marginal; lots
of hardlinks can behave suboptimally in particular filesystems
like BTRFS too.

This builds on prior code which made this an option, introduced
in https://github.com/ostreedev/ostree/commit/673cacd633f9d6b653cdea530657d3e780a41bbd
Now we just do it uncondtionally.

Also this provoked a different bug in a very obscure user mode checkout
case; when the "real" permissions were different from the "physical"
permissions, we would still hardlink.  Fix the test case for this.

5 years agoMerge pull request #2167 from pwithnall/2165-dont-download-config
OpenShift Merge Robot [Thu, 1 Oct 2020 20:46:29 +0000 (16:46 -0400)]
Merge pull request #2167 from pwithnall/2165-dont-download-config

Avoid need to download remote config when pulling