ostree.git
2 years agobootloader/zipl: No-op if run as non-root
Colin Walters [Tue, 24 Oct 2023 14:40:51 +0000 (10:40 -0400)]
bootloader/zipl: No-op if run as non-root

Not the most elegant fix but should get the job done.

Bug: https://github.com/ostreedev/ostree/issues/3084
Origin: upstream, 2023.8, commit:75c7e51a8bedb5edeadb9f54e84ccfff2adcc755

Gbp-Pq: Name bootloader-zipl-No-op-if-run-as-non-root.patch

2 years agoRelease to unstable
Simon McVittie [Mon, 6 Nov 2023 09:45:50 +0000 (09:45 +0000)]
Release to unstable

2 years agoReally skip test-admin-deploy-uboot.sh on s390x
Simon McVittie [Mon, 6 Nov 2023 09:44:29 +0000 (09:44 +0000)]
Really skip test-admin-deploy-uboot.sh on s390x

2 years agoRemove constraints unnecessary since bullseye (oldstable)
Simon McVittie [Thu, 2 Nov 2023 10:08:53 +0000 (10:08 +0000)]
Remove constraints unnecessary since bullseye (oldstable)

* Build-Depends: Drop versioned constraint on gobject-introspection (>= 1.51.5).
* Build-Depends: Drop versioned constraint on libavahi-client-dev (>= 0.6.31).
* Build-Depends: Drop versioned constraint on libavahi-glib-dev (>= 0.6.31).
* Build-Depends: Drop versioned constraint on libgirepository1.0-dev (>= 1.51.5).
* Build-Depends: Drop versioned constraint on libglib2.0-dev (>= 2.66.0).
* Build-Depends: Drop versioned constraint on libmount-dev (>= 2.23).
* libostree-1-1: Drop conflict with removed package flatpak (<< 0.8.7-2~) in Breaks.
* libostree-dev: Drop versioned constraint on libglib2.0-dev (>= 2.66.0) in Depends.
* Remove 2 maintscript entries from 1 files.

Changes-By: deb-scrub-obsolete
2 years agoRelease to unstable
Simon McVittie [Thu, 26 Oct 2023 10:34:08 +0000 (11:34 +0100)]
Release to unstable

2 years agoAdd patch to avoid another test failure on s390x
Simon McVittie [Thu, 26 Oct 2023 10:26:25 +0000 (11:26 +0100)]
Add patch to avoid another test failure on s390x

2 years agolibostree-1-dev Provides gir1.2-ostree-1.0-dev
Simon McVittie [Thu, 26 Oct 2023 10:13:09 +0000 (11:13 +0100)]
libostree-1-dev Provides gir1.2-ostree-1.0-dev

This is likely to be useful in the migration path to being able to turn
off GObject-Introspection bindings when bootstrapping or cross-compiling.

2 years agoAdd patch from upstream to avoid build-time test failure on s390x
Simon McVittie [Thu, 26 Oct 2023 10:07:31 +0000 (11:07 +0100)]
Add patch from upstream to avoid build-time test failure on s390x

2 years agoRelease to unstable
Simon McVittie [Mon, 23 Oct 2023 09:37:01 +0000 (10:37 +0100)]
Release to unstable

2 years agoDepend on pkgconf in preference to pkg-config
Simon McVittie [Mon, 23 Oct 2023 09:36:27 +0000 (10:36 +0100)]
Depend on pkgconf in preference to pkg-config

2 years agoInstall systemd system units into /usr/lib/systemd/system
Simon McVittie [Mon, 23 Oct 2023 09:35:10 +0000 (10:35 +0100)]
Install systemd system units into /usr/lib/systemd/system

This was allowed by TC resolution #1053901. Build-depend on debhelper
13.11.6~ to ensure that the units are still picked up by
dh_installsystemd.

2 years agoNew upstream release
Simon McVittie [Mon, 23 Oct 2023 09:33:48 +0000 (10:33 +0100)]
New upstream release

2 years agoUpdate upstream source from tag 'upstream/2023.7'
Simon McVittie [Mon, 23 Oct 2023 09:23:34 +0000 (10:23 +0100)]
Update upstream source from tag 'upstream/2023.7'

Update to upstream version '2023.7'
with Debian dir 87efd50332ba01b4f3d82cb59fd1c034293ace78

2 years agoNew upstream version 2023.7
Simon McVittie [Mon, 23 Oct 2023 09:23:27 +0000 (10:23 +0100)]
New upstream version 2023.7

2 years agoRelease 2023.7
Colin Walters [Fri, 20 Oct 2023 13:24:56 +0000 (09:24 -0400)]
Release 2023.7

2 years agoMerge pull request #3081 from jlebon/pr/log-selinux-refresh
Colin Walters [Fri, 20 Oct 2023 13:36:10 +0000 (09:36 -0400)]
Merge pull request #3081 from jlebon/pr/log-selinux-refresh

lib/deploy: Log SELinux policy refresh

2 years agolib/deploy: Log SELinux policy refresh
Jonathan Lebon [Thu, 19 Oct 2023 15:35:25 +0000 (11:35 -0400)]
lib/deploy: Log SELinux policy refresh

I have a suspicion that the `semodule -N --refresh` we do here is
involved in https://github.com/coreos/fedora-coreos-tracker/issues/1597.
Let's log when we execute it and include its time.

While we're here, also log the time it takes to `syncfs()` and the
fsfreeze/thaw cycling. It's logged in a structured journal entry, but
that's less accessible than just having it in the journal message field.

2 years agoMerge pull request #2843 from jmarrero/retry
Colin Walters [Wed, 18 Oct 2023 13:07:46 +0000 (09:07 -0400)]
Merge pull request #2843 from jmarrero/retry

ostree-fetcher-curl: handle non 404 errors as G_IO_ERROR_TIMED_OUT

2 years agoostree-repo-pull: add options to configure retry behavior
Joseph Marrero [Mon, 3 Apr 2023 23:04:57 +0000 (19:04 -0400)]
ostree-repo-pull: add options to configure retry behavior

This introduces the "retry-all-network-errors" option which
is enabled by default. This is a behavior change as now
ostree will retry on requests that fail except when
they fail with NOT_FOUND. It also introduces the options
"low-speed-limit-bytes" and "low-speed-time-seconds these"
map to CURL options only at the moment. Which have defaults
set following librepo:
https://github.com/rpm-software-management/librepo/blob/7c9af219abd49f8961542b7622fc82cfdaa572e3/librepo/handle.h#L90
https://github.com/rpm-software-management/librepo/blob/7c9af219abd49f8961542b7622fc82cfdaa572e3/librepo/handle.h#L96
Currently these changes only apply when using libcurl.
Finally this change adds a final option that affects all
backends to control the max amount of connections of the
fetcher "max-outstanding-fetcher-requests".

2 years agoMerge pull request #3078 from HuijingHei/karg-delete-array
Colin Walters [Tue, 17 Oct 2023 13:44:24 +0000 (09:44 -0400)]
Merge pull request #3078 from HuijingHei/karg-delete-array

karg-delete: support multiple times

2 years agodoc: add `ostree admin deploy` option `--karg-delete`
HuijingHei [Tue, 17 Oct 2023 12:23:07 +0000 (20:23 +0800)]
doc: add `ostree admin deploy` option `--karg-delete`

2 years agokarg-delete: support multiple times
HuijingHei [Mon, 16 Oct 2023 02:56:59 +0000 (10:56 +0800)]
karg-delete: support multiple times

Fix https://github.com/ostreedev/ostree/pull/2612#issuecomment-1764412141

2 years agoMerge pull request #3075 from cgwalters/reenable-composefs
Colin Walters [Mon, 16 Oct 2023 14:24:10 +0000 (10:24 -0400)]
Merge pull request #3075 from cgwalters/reenable-composefs

tests: Use ext4, re-enable composefs test

2 years agoMerge pull request #3077 from cgwalters/debug-finalization-lock
Joseph Marrero Corchado [Fri, 13 Oct 2023 20:05:44 +0000 (16:05 -0400)]
Merge pull request #3077 from cgwalters/debug-finalization-lock

deploy: Remove lock when re-staging

2 years agodeploy: Remove lock when re-staging
Colin Walters [Fri, 13 Oct 2023 17:45:04 +0000 (13:45 -0400)]
deploy: Remove lock when re-staging

This closes the biggest foot-gun when doing e.g.
`rpm-ostree rebase` when zincati is running on a FCOS system.

Previously if zincati happened to have staged + locked a deployment,
we'd keep around the lock which is definitely not what is desired.

2 years agotests: Use ext4, re-enable composefs test
Colin Walters [Thu, 12 Oct 2023 22:24:00 +0000 (18:24 -0400)]
tests: Use ext4, re-enable composefs test

Until the XFS fsverity stuff lands.

2 years agoMerge pull request #3074 from cgwalters/more-errcontext-composefs
Joseph Marrero Corchado [Thu, 12 Oct 2023 18:52:36 +0000 (14:52 -0400)]
Merge pull request #3074 from cgwalters/more-errcontext-composefs

composefs: Add more error prefixing

2 years agoMerge pull request #3073 from cgwalters/context-no-stateroot
Joseph Marrero Corchado [Thu, 12 Oct 2023 18:49:28 +0000 (14:49 -0400)]
Merge pull request #3073 from cgwalters/context-no-stateroot

deploy: Improve error message for nonexistent stateroot

2 years agocomposefs: Add more error prefixing
Colin Walters [Thu, 12 Oct 2023 17:30:38 +0000 (13:30 -0400)]
composefs: Add more error prefixing

To help debug https://github.com/coreos/rpm-ostree/issues/4649

2 years agodeploy: Improve error message for nonexistent stateroot
Colin Walters [Thu, 12 Oct 2023 17:22:00 +0000 (13:22 -0400)]
deploy: Improve error message for nonexistent stateroot

Came up on an internal chat; previously we were only erroring
out when trying to do the SELinux labeling for `/var` which
was really misleading.

Add some other error prefixing while we have the patient open.

2 years agoMerge pull request #3062 from alexlarsson/transient-etc
Colin Walters [Thu, 12 Oct 2023 16:21:27 +0000 (12:21 -0400)]
Merge pull request #3062 from alexlarsson/transient-etc

Support transient /etc

2 years agoSupport transient /etc
Alexander Larsson [Fri, 29 Sep 2023 11:37:22 +0000 (13:37 +0200)]
Support transient /etc

If the `prepare-root.conf` file contains:
```
[etc]
transient=yes
```

Then during prepare-root, an overlayfs is mounted as /etc, with the
upper dir being in /run. If composefs is used, the lower dir is
`usr/etc` from the composefs image , or it is the deployed
`$deploydir/usr/etc`.

Note that for this to work with selinux, the commit must have been
built with OSTREE_REPO_COMMIT_MODIFIER_FLAGS_USRETC_AS_ETC. Otherwise
the lowerdir (/usr/etc) will have the wrong selinux contexts for the
final location of the mount (/etc).

We also set the transient-etc key in the ostree-booted file, pointing it
to the directory that is used for the overlayfs.

There are some additional work happening in ostree-remount, mostly
related to selinux (as this needs to happen post selinux policy
load):

 * Recent versions of selinux-poliy have issues with the overlayfs
   mount being kernel_t, and that is not allowed to manage files as
   needed. This is fixed in
   https://github.com/fedora-selinux/selinux-policy/pull/1893

 * Any /etc files created in the initramfs will not be labeled,
   because the selinux policy has not been loaded. In addition, the
   upper dir is on a tmpfs, and any manually set xattr-based selinux
   labels on those are reset during policy load. To work around this
   ostree-remount will relabel all files on /etc that have
   corresponding files in overlayfs upper dir.

 * During early boot, systemd mounts /run/machine-id on top of
   /etc/machine-id (as /etc is readonly). Later during boot, when etc
   is readwrite, systemd-machine-id-commit.service will remove the
   mount and update the real file under it with the right content. To
   ensure that this keeps working, we need to ensure that when we
   relabel /etc/machine-id we relabel the real (covered) file, not the
   temporary bind-mount.

 * ostree-remount no longer needs to remount /etc read-only in the
   transient-etc case.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
2 years agoMerge pull request #3072 from alexlarsson/fix-whiteout-test
Colin Walters [Thu, 12 Oct 2023 14:25:40 +0000 (10:25 -0400)]
Merge pull request #3072 from alexlarsson/fix-whiteout-test

tests: Fix whiteout test

2 years agoMerge pull request #3063 from cgwalters/label-usretc-as-etc
Colin Walters [Thu, 12 Oct 2023 11:57:05 +0000 (07:57 -0400)]
Merge pull request #3063 from cgwalters/label-usretc-as-etc

repo: Add an option to label /usr/etc as /etc

2 years agotests: Fix whiteout test
Alexander Larsson [Thu, 12 Oct 2023 08:18:36 +0000 (10:18 +0200)]
tests: Fix whiteout test

This test was always skipped, because the check:

 if touch overlay/baz/.wh.cow &&
    touch overlay/.wh.deeper &&
    touch overlay/baz/another/.wh..wh..opq; then

always fails due to the missing overlay/baz/another directory.
Fix by creating the directory.

2 years agorepo: Add an option to label /usr/etc as /etc
Colin Walters [Mon, 2 Oct 2023 15:05:31 +0000 (11:05 -0400)]
repo: Add an option to label /usr/etc as /etc

This will be very useful for enabling a "transient /etc" option
because we won't have to do hacks relabling in the initramfs, or
forcing it on just for composefs.

2 years agoMerge pull request #3067 from cgwalters/ci-composefs
Jonathan Lebon [Wed, 11 Oct 2023 16:03:39 +0000 (12:03 -0400)]
Merge pull request #3067 from cgwalters/ci-composefs

2 years agoci: Disable composefs test for now
Colin Walters [Wed, 11 Oct 2023 12:15:25 +0000 (08:15 -0400)]
ci: Disable composefs test for now

Need to change the framework to boot with an Ignition config
that switches to ext4 soon.

2 years agoci: Ensure composefs+openssl are is enabled on Fedora
Colin Walters [Thu, 5 Oct 2023 23:54:54 +0000 (19:54 -0400)]
ci: Ensure composefs+openssl are is enabled on Fedora

For some reason we're not picking this up in the Prow build,
which breaks things because now rpm-ostree hard requires it.

Let's make this a fatal build time error for more clear
debugging.

2 years agoMerge pull request #3060 from owtaylor/export-hardlinks
Colin Walters [Tue, 3 Oct 2023 14:08:36 +0000 (10:08 -0400)]
Merge pull request #3060 from owtaylor/export-hardlinks

When exporting, use hardlinks for duplicated files

2 years agoWhen exporting, use hardlinks for duplicated files
Owen W. Taylor [Fri, 29 Sep 2023 16:09:04 +0000 (12:09 -0400)]
When exporting, use hardlinks for duplicated files

For ostree_repo_export_tree_to_archive(), and 'ostree export', when the
exported tree contains multiple files with the same checksum, write an
archive with hard links.

Without this, importing a tree, then exporting it again breaks
hardlinks.

As an example of savings: this reduces the (compressed) size of the
Fedora Flatpak Runtime image from 1345MiB to 712MiB.

Resolves: #2925

2 years agoMerge pull request #3049 from jlebon/pr/revert-virtiofs-hack
Colin Walters [Thu, 28 Sep 2023 13:12:44 +0000 (09:12 -0400)]
Merge pull request #3049 from jlebon/pr/revert-virtiofs-hack

Revert "ci: Run cosa unprivileged"

2 years agoMerge pull request #3059 from cgwalters/zipl-default-s390x
Jonathan Lebon [Thu, 28 Sep 2023 12:18:16 +0000 (08:18 -0400)]
Merge pull request #3059 from cgwalters/zipl-default-s390x

2 years agoRevert "ci: Run cosa unprivileged"
Jonathan Lebon [Tue, 19 Sep 2023 18:41:36 +0000 (14:41 -0400)]
Revert "ci: Run cosa unprivileged"

This reverts commit 2fe88f80fae83e206f811003a072c73ceebcea59.

This shouldn't be necessary now with the workaround built in cosa:

https://github.com/coreos/coreos-assembler/pull/3625

2 years agoMerge pull request #3046 from ostreedev/dependabot/submodules/composefs-cca8be4
Colin Walters [Wed, 27 Sep 2023 23:34:30 +0000 (19:34 -0400)]
Merge pull request #3046 from ostreedev/dependabot/submodules/composefs-cca8be4

build(deps): bump composefs from `af86742` to `cca8be4`

2 years agorepo: Default bootloader to zipl on s390x
Colin Walters [Wed, 27 Sep 2023 15:41:55 +0000 (11:41 -0400)]
repo: Default bootloader to zipl on s390x

This will allow us to drop code like
https://github.com/coreos/coreos-assembler/blob/87fc693c115eae1e7ff0e1621ce26c9167af6e84/src/create_disk.sh#L503
which is really just unnecessary since there aren't any other
bootloaders we care about on this architecture.

2 years agoMerge pull request #3058 from cgwalters/doc-authenticated-repos
Joseph Marrero Corchado [Wed, 27 Sep 2023 19:27:26 +0000 (15:27 -0400)]
Merge pull request #3058 from cgwalters/doc-authenticated-repos

docs: Add authenticated-repos.md

2 years agodocs: Add authenticated-repos.md
Colin Walters [Wed, 27 Sep 2023 18:02:25 +0000 (14:02 -0400)]
docs: Add authenticated-repos.md

Document options for accessing repositories that require authentication.

2 years agoMerge pull request #3021 from cgwalters/insttest-composefs-binding
Colin Walters [Thu, 21 Sep 2023 23:50:05 +0000 (19:50 -0400)]
Merge pull request #3021 from cgwalters/insttest-composefs-binding

tests: Add an integration test for composefs signatures

2 years agoMerge pull request #3053 from ericcurtin/add_overlay_and_erofs_to_initrd
Colin Walters [Thu, 21 Sep 2023 17:13:27 +0000 (13:13 -0400)]
Merge pull request #3053 from ericcurtin/add_overlay_and_erofs_to_initrd

boot/dracut: Add erofs and overlayfs kernel modules

2 years agoboot/dracut: Add erofs and overlayfs kernel modules
Eric Curtin [Tue, 19 Sep 2023 13:32:10 +0000 (14:32 +0100)]
boot/dracut: Add erofs and overlayfs kernel modules

These kernel modules are required for composefs usage in the initramfs.

The composefs use-case as of today uses an overlayfs on top of EROFS.

2 years agotests: Add an integration test for composefs signatures
Colin Walters [Tue, 29 Aug 2023 18:51:38 +0000 (14:51 -0400)]
tests: Add an integration test for composefs signatures

Ensure we have some automated test coverage for this.

2 years agoMerge pull request #3051 from cgwalters/rust-tests-update
Eric Curtin [Wed, 20 Sep 2023 13:18:31 +0000 (14:18 +0100)]
Merge pull request #3051 from cgwalters/rust-tests-update

rust/tests: Adjust for new ostree

2 years agoMerge pull request #3052 from cgwalters/switch-libglnx-source
Colin Walters [Wed, 20 Sep 2023 12:48:17 +0000 (08:48 -0400)]
Merge pull request #3052 from cgwalters/switch-libglnx-source

gitmodules: Use github GNOME mirror

2 years agogitmodules: Use github GNOME mirror
Colin Walters [Wed, 20 Sep 2023 11:58:44 +0000 (07:58 -0400)]
gitmodules: Use github GNOME mirror

gitlab.gnome.org is down right now, but it's been somewhat
flaky in the past.  Our CI uptime becomes an *intersection*
of all systems it depends on, and by cutting out gitlab.gnome.org
we increase its reliability.

2 years agotests: Rework detection of trivial-httpd
Colin Walters [Tue, 19 Sep 2023 19:25:36 +0000 (15:25 -0400)]
tests: Rework detection of trivial-httpd

Because it's now at the toplevel.

2 years agoMerge pull request #3047 from ostreedev/dependabot/submodules/libglnx-aff1eea
Jonathan Lebon [Mon, 18 Sep 2023 15:08:13 +0000 (11:08 -0400)]
Merge pull request #3047 from ostreedev/dependabot/submodules/libglnx-aff1eea

2 years agobuild(deps): bump libglnx from `54ad67d` to `aff1eea`
dependabot[bot] [Mon, 18 Sep 2023 12:18:48 +0000 (12:18 +0000)]
build(deps): bump libglnx from `54ad67d` to `aff1eea`

Bumps libglnx from `54ad67d` to `aff1eea`.

---
updated-dependencies:
- dependency-name: libglnx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump composefs from `af86742` to `cca8be4`
dependabot[bot] [Mon, 18 Sep 2023 12:18:47 +0000 (12:18 +0000)]
build(deps): bump composefs from `af86742` to `cca8be4`

Bumps [composefs](https://github.com/containers/composefs) from `af86742` to `cca8be4`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/af867425799db92c92d35feb51d2c957f3e16ac7...cca8be49843385ce556fccf51f75821f70fb7769)

---
updated-dependencies:
- dependency-name: composefs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #3039 from cgwalters/rust-switch-include
Jonathan Lebon [Tue, 12 Sep 2023 13:10:11 +0000 (09:10 -0400)]
Merge pull request #3039 from cgwalters/rust-switch-include

2 years agorust: Switch to using `include`
Colin Walters [Fri, 8 Sep 2023 11:50:37 +0000 (07:50 -0400)]
rust: Switch to using `include`

This way we don't randomly pick up bits from the C library
unintentionally as things change on that side.

I think the support for `!` in `include` may be relatively new
and that's why the original author here chose to do things
via `exclude`.  But using `include` with a few specific exclusions
is just way better.

2 years agoMerge pull request #2054 from jlebon/pr/static-delta-fetch-no-scan
Colin Walters [Mon, 11 Sep 2023 13:41:13 +0000 (09:41 -0400)]
Merge pull request #2054 from jlebon/pr/static-delta-fetch-no-scan

lib/pull: Don't scan commit objects we fetch via deltas

2 years agolib/pull: Drop static delta superblocks references
Jonathan Lebon [Mon, 11 Sep 2023 02:14:39 +0000 (22:14 -0400)]
lib/pull: Drop static delta superblocks references

We don't need them long-lived anymore. They were just used for reporting
at this point, but we can use the new `static_delta_targets` hash table
size for that now.

2 years agoci: Run cosa unprivileged
Jonathan Lebon [Sat, 9 Sep 2023 00:40:07 +0000 (20:40 -0400)]
ci: Run cosa unprivileged

As a workaround for a virtiofs bug:
https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/197

xref coreos/coreos-assembler#3428 (comment)

Just like in https://github.com/coreos/rpm-ostree/pull/4585.

2 years agolib/pull: Don't scan commit objects we fetch via deltas
Jonathan Lebon [Fri, 8 Sep 2023 20:54:29 +0000 (16:54 -0400)]
lib/pull: Don't scan commit objects we fetch via deltas

When we're fetching a commit via static delta, we already take care of
fetching the full commit, so there's no need to also scan it using the
regular object workflow.

Closes: #2053
2 years agolib/pull: Fix miscounting of missing metadata
Jonathan Lebon [Fri, 8 Sep 2023 20:50:47 +0000 (16:50 -0400)]
lib/pull: Fix miscounting of missing metadata

If e.g. detached metadata or a parent commit is missing, we
don't consider it an error but we erroneously still increment the
`n_fetched_metadata` counter, causing it to be higher than it should.

This will implicitly be tested by a test added in the next patch.

2 years agoapp/pull-local: Add `--disable-static-delta`
Jonathan Lebon [Fri, 8 Sep 2023 19:05:37 +0000 (15:05 -0400)]
app/pull-local: Add `--disable-static-delta`

For completeness with `pull`.

Prep for using it in testing to assert we'll never use static deltas.

2 years agoMerge pull request #3038 from cgwalters/rust-drop-composefs
Colin Walters [Fri, 8 Sep 2023 16:03:21 +0000 (12:03 -0400)]
Merge pull request #3038 from cgwalters/rust-drop-composefs

rust: Drop composefs from crate

2 years agoMerge pull request #3037 from cgwalters/add-labeler-flow
Eric Curtin [Fri, 8 Sep 2023 11:52:44 +0000 (12:52 +0100)]
Merge pull request #3037 from cgwalters/add-labeler-flow

ci: Add an automatic labeler action

2 years agorust: Drop composefs from crate
Colin Walters [Fri, 8 Sep 2023 11:37:10 +0000 (07:37 -0400)]
rust: Drop composefs from crate

This greatly reduces the size.  TODO: switch to using `include`.

2 years agoMerge pull request #3035 from cgwalters/release-rust
Colin Walters [Fri, 8 Sep 2023 11:24:56 +0000 (07:24 -0400)]
Merge pull request #3035 from cgwalters/release-rust

rust/sys: Also bump semver for this

2 years agoci: Add an automatic labeler action
Colin Walters [Thu, 7 Sep 2023 21:38:59 +0000 (17:38 -0400)]
ci: Add an automatic labeler action

To automate a bit.

2 years agoMerge pull request #3030 from ostreedev/dependabot/submodules/composefs-af86742
Colin Walters [Thu, 7 Sep 2023 20:21:39 +0000 (16:21 -0400)]
Merge pull request #3030 from ostreedev/dependabot/submodules/composefs-af86742

build(deps): bump composefs from `d085fbf` to `af86742`

2 years agorust/sys: Also bump semver for this
Colin Walters [Thu, 7 Sep 2023 18:54:56 +0000 (14:54 -0400)]
rust/sys: Also bump semver for this

Since we bumped the glib major.

2 years agobuild(deps): bump composefs from `d085fbf` to `af86742`
dependabot[bot] [Wed, 6 Sep 2023 13:39:35 +0000 (13:39 +0000)]
build(deps): bump composefs from `d085fbf` to `af86742`

Bumps [composefs](https://github.com/containers/composefs) from `d085fbf` to `af86742`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/d085fbf6c8364f3781de7988b13c0f6dbf9e975b...af867425799db92c92d35feb51d2c957f3e16ac7)

---
updated-dependencies:
- dependency-name: composefs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #3028 from ostreedev/dependabot/submodules/composefs-d085fbf
Colin Walters [Wed, 6 Sep 2023 13:32:33 +0000 (09:32 -0400)]
Merge pull request #3028 from ostreedev/dependabot/submodules/composefs-d085fbf

build(deps): bump composefs from `597a766` to `d085fbf`

2 years agoMerge pull request #3029 from cgwalters/bump-glib
Colin Walters [Wed, 6 Sep 2023 13:06:04 +0000 (09:06 -0400)]
Merge pull request #3029 from cgwalters/bump-glib

rust: Port to glib 0.18

2 years agoRelease to unstable
Simon McVittie [Sun, 3 Sep 2023 11:06:39 +0000 (12:06 +0100)]
Release to unstable

2 years agod/rules: Disable composefs for now
Simon McVittie [Sun, 3 Sep 2023 11:06:23 +0000 (12:06 +0100)]
d/rules: Disable composefs for now

Official buildds don't seem to support fsetxattr on the filesystem used
for /var/tmp, which is required for the composefs tests.

2 years agoRelease to unstable
Simon McVittie [Sat, 2 Sep 2023 17:52:36 +0000 (18:52 +0100)]
Release to unstable

2 years agod/ostree-tests.install: trivial-httpd moved to installed-tests directory
Simon McVittie [Sat, 2 Sep 2023 17:52:14 +0000 (18:52 +0100)]
d/ostree-tests.install: trivial-httpd moved to installed-tests directory

2 years agoUpdate changelog
Simon McVittie [Sat, 2 Sep 2023 10:05:57 +0000 (11:05 +0100)]
Update changelog

2 years agod/rules: Enable composefs support
Simon McVittie [Sat, 2 Sep 2023 09:52:57 +0000 (10:52 +0100)]
d/rules: Enable composefs support

This is now on by default when compiled with sufficiently new kernel
headers.

2 years agoUpdate upstream source from tag 'upstream/2023.6'
Simon McVittie [Sat, 2 Sep 2023 09:44:03 +0000 (10:44 +0100)]
Update upstream source from tag 'upstream/2023.6'

Update to upstream version '2023.6'
with Debian dir c47c418cbd7d6bd58330ef436c18523e1338ef05

2 years agoNew upstream version 2023.6
Simon McVittie [Sat, 2 Sep 2023 09:43:55 +0000 (10:43 +0100)]
New upstream version 2023.6

2 years agorust: Bump semver to 0.19
Colin Walters [Fri, 1 Sep 2023 12:36:16 +0000 (08:36 -0400)]
rust: Bump semver to 0.19

- New glib 0.18 dependency
- Drop cap-std APIs and features
- Other minor changes

2 years agorust: Port to glib 0.18
Colin Walters [Thu, 31 Aug 2023 18:40:01 +0000 (14:40 -0400)]
rust: Port to glib 0.18

- Also rolls up a few other changes in the C API
- Drop `&mut` from `OstreeKernelArgs`; it now confuses type inference.
  More generally while using `&mut` here was well intentioned, it
  goes against the glib standard of mapping everything to `&` and
  accepting interior mutability.

2 years agobuild(deps): bump composefs from `597a766` to `d085fbf`
dependabot[bot] [Fri, 1 Sep 2023 12:27:47 +0000 (12:27 +0000)]
build(deps): bump composefs from `597a766` to `d085fbf`

Bumps [composefs](https://github.com/containers/composefs) from `597a766` to `d085fbf`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/597a76609574cf9133d1e17ec0a7b99877a0b709...d085fbf6c8364f3781de7988b13c0f6dbf9e975b)

---
updated-dependencies:
- dependency-name: composefs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #3027 from cgwalters/drop-cap-std-public
Joseph Marrero Corchado [Thu, 31 Aug 2023 21:48:15 +0000 (17:48 -0400)]
Merge pull request #3027 from cgwalters/drop-cap-std-public

Drop cap-std from our public APIs

2 years agoci: Move lints into main build
Colin Walters [Thu, 31 Aug 2023 20:33:07 +0000 (16:33 -0400)]
ci: Move lints into main build

And drop another hardcoded MSRV.

2 years agorust: Bump rust-version = 1.70
Colin Walters [Thu, 31 Aug 2023 19:23:57 +0000 (15:23 -0400)]
rust: Bump rust-version = 1.70

To pick up the new `AsFd` etc.

2 years agoDrop cap-std from our public APIs
Colin Walters [Thu, 31 Aug 2023 18:08:15 +0000 (14:08 -0400)]
Drop cap-std from our public APIs

Since it bumped semver (when I didn't expect it to; xref
https://github.com/bytecodealliance/cap-std/commit/963eebf3ab52b04a2e8b9ba88ce6308bbed5cbd0#r121651362

It's not load-bearing enough here to matter versus just passing
an untyped file descriptor.

This mainly means that it will be the `glib` ecosystem which
forces transitive semver bumps for us, not both.

2 years agoMerge pull request #3018 from ostreedev/dependabot/submodules/composefs-597a766
Colin Walters [Thu, 31 Aug 2023 16:16:50 +0000 (12:16 -0400)]
Merge pull request #3018 from ostreedev/dependabot/submodules/composefs-597a766

build(deps): bump composefs from `1aed878` to `597a766`

2 years agoMerge pull request #3012 from cgwalters/default-early-prune
Eric Curtin [Thu, 31 Aug 2023 15:30:26 +0000 (16:30 +0100)]
Merge pull request #3012 from cgwalters/default-early-prune

sysroot: Promote the "early prune" behavior to default

2 years agosysroot: Promote the "early prune" behavior to default
Colin Walters [Thu, 24 Aug 2023 14:00:13 +0000 (10:00 -0400)]
sysroot: Promote the "early prune" behavior to default

I think we have enough testing for this, let's default it to
on, and change the variable to allow opt-out in case it does
introduce a regression.

2 years agoMerge pull request #2968 from cgwalters/drop-global-syncfs-by-default
Colin Walters [Wed, 30 Aug 2023 20:24:37 +0000 (16:24 -0400)]
Merge pull request #2968 from cgwalters/drop-global-syncfs-by-default

deploy: Remove global `sync` by default

2 years agoMerge pull request #3024 from cgwalters/clang-analyzer-fixes-5
Joseph Marrero Corchado [Wed, 30 Aug 2023 20:14:28 +0000 (16:14 -0400)]
Merge pull request #3024 from cgwalters/clang-analyzer-fixes-5

Clang analyzer fixes 5

2 years agobuild(deps): bump composefs from `1aed878` to `597a766`
dependabot[bot] [Tue, 29 Aug 2023 12:07:40 +0000 (12:07 +0000)]
build(deps): bump composefs from `1aed878` to `597a766`

Bumps [composefs](https://github.com/containers/composefs) from `1aed878` to `597a766`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/1aed8781d6ce617234175d5d3b0458f91a6e38f3...597a76609574cf9133d1e17ec0a7b99877a0b709)

---
updated-dependencies:
- dependency-name: composefs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #3023 from ostreedev/dependabot/submodules/libglnx-54ad67d
Colin Walters [Wed, 30 Aug 2023 13:58:01 +0000 (09:58 -0400)]
Merge pull request #3023 from ostreedev/dependabot/submodules/libglnx-54ad67d

build(deps): bump libglnx from `c02eb59` to `54ad67d`

2 years agocommit: Quiet clang-analyzer warning
Colin Walters [Wed, 30 Aug 2023 13:23:13 +0000 (09:23 -0400)]
commit: Quiet clang-analyzer warning

Another conditional ownership.