Skip to content

Commit f32ec0e

Browse files
authored
Merge branch 'ostreedev:main' into main
2 parents 7107483 + de9e8dd commit f32ec0e

24 files changed

Lines changed: 238 additions & 121 deletions

.github/workflows/bootc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
sudo apt update
3333
sudo apt install -y crun/testing podman/testing skopeo/testing
3434
- name: build
35-
run: sudo just build --build-arg=base=quay.io/centos-bootc/centos-bootc:${{ matrix.stream }}
35+
run: sudo STREAM=${{ matrix.stream }} just build
3636
- name: unitcontainer
37-
run: sudo just unitcontainer
37+
run: sudo STREAM=${{ matrix.stream }} just unitcontainer
3838
- name: unittest
39-
run: sudo just unittest
39+
run: sudo STREAM=${{ matrix.stream }} just unittest
4040
- name: bootc install
4141
run: |
4242
set -xeuo pipefail

.github/workflows/tests.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,17 @@ jobs:
213213
configure-options: >-
214214
--with-crypto=openssl
215215
216-
# A build using libsoup3. After bookworm is released, this can
217-
# be switched to Debian Stable.
218-
- name: Debian Testing with libsoup3
219-
image: debian:testing-slim
216+
- name: Debian Stable with libsoup
217+
image: debian:stable-slim
220218
container-options: --security-opt seccomp=unconfined
221219
pre-checkout-setup: |
222220
apt-get update
223221
apt-get install -y git
224222
extra-packages: >-
225-
libsoup-3.0-dev
223+
libsoup2.4-dev
226224
configure-options: >-
227-
--with-soup3
225+
--with-soup
226+
--without-soup3
228227
229228
# A build using static prepareorot
230229
- name: Debian stable + static-prepareroot

.lgtm.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "ostree"
99
readme = "rust-bindings/README.md"
1010
repository = "https://github.com/ostreedev/ostree"
1111
rust-version = "1.77.0"
12-
version = "0.20.4"
12+
version = "0.20.5"
1313

1414
include = [
1515
"/COPYING",

Justfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
# Detect the os for a workaround below
22
osid := `. /usr/lib/os-release && echo $ID`
33

4+
stream := env('STREAM', 'stream9')
5+
build_args := "--jobs=4 --build-arg=base=quay.io/centos-bootc/centos-bootc:"+stream
6+
47
# Build the container image from current sources
58
build *ARGS:
6-
podman build --jobs=4 -t localhost/ostree {{ARGS}} .
9+
podman build {{build_args}} -t localhost/ostree {{ARGS}} .
710

811
build-unittest *ARGS:
9-
podman build --jobs=4 --target build -t localhost/ostree-buildroot {{ARGS}} .
12+
podman build {{build_args}} --target build -t localhost/ostree-buildroot {{ARGS}} .
1013

1114
# Do a build but don't regenerate the initramfs
1215
build-noinitramfs *ARGS:
13-
podman build --jobs=4 --target rootfs -t localhost/ostree {{ARGS}} .
16+
podman build {{build_args}} --target rootfs -t localhost/ostree {{ARGS}} .
17+
18+
unitcontainer-build *ARGS:
19+
podman build {{build_args}} --target bin-and-test -t localhost/ostree-bintest {{ARGS}} .
1420

1521
# We need a filesystem that supports O_TMPFILE right now (i.e. not overlayfs)
1622
# or ostree hard crashes in the http code =/
@@ -33,8 +39,6 @@ unittest-shell: build-unittest
3339
# For some reason doing the bind mount isn't working on at least the GHA Ubuntu 24.04 runner
3440
# without --privileged. I think it may be apparmor?
3541
unitpriv := if osid == "ubuntu" { "--privileged" } else { "" }
36-
unitcontainer-build:
37-
podman build --jobs=4 --target bin-and-test -t localhost/ostree-bintest .
3842
unitcontainer: unitcontainer-build
3943
# need cap-add=all for mounting
4044
podman run --rm --net=none {{unitpriv}} {{unittest_args}} --cap-add=all --env=TEST_CONTAINER=1 localhost/ostree-bintest /tests/run.sh
@@ -59,4 +63,4 @@ clang-format:
5963

6064
# Check source files against clang-format defaults
6165
clang-format-check:
62-
{{sourcefiles}} | xargs clang-format -i --Werror --dry-run
66+
{{sourcefiles}} | xargs clang-format -i --Werror --dry-run

ci/gh-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ case "$ID" in
9797
liblzma-dev
9898
libmount-dev
9999
libselinux1-dev
100-
libsoup2.4-dev
100+
libsoup-3.0-dev
101101
libsystemd-dev
102102
libtool
103103
libcap2-bin

docs/adapting-existing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ machines, you will need to choose a solution for `/etc/passwd`. The
121121
core problem is that if you add a user to the system for a daemon, the
122122
OSTree upgrade process for `/etc` will simply notice that because
123123
`/etc/passwd` differs from the previous default, it will keep the
124-
modified config file, and your new OS user will not be visible.
124+
modified config file, and your new OS user will not be visible.
125125

126126
First, consider using [systemd DynamicUser=yes](https://0pointer.net/blog/dynamic-users-with-systemd.html)
127127
where applicable. This entirely avoids problems with static
@@ -201,4 +201,4 @@ Then to actually deploy this tree for the next boot:
201201
`ostree admin deploy $osname/$releasename/$description`
202202

203203
This is essentially what [rpm-ostree](https://github.com/projectatomic/rpm-ostree/)
204-
does to support its [package layering model](https://rpm-ostree.readthedocs.io/en/latest/manual/administrator-handbook/#hybrid-imagepackaging-via-package-layering).
204+
does to support its [package layering model](https://coreos.github.io/rpm-ostree/administrator-handbook/#hybrid-imagepackaging-via-package-layering).

man/ostree-state-overlay@.service.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,14 @@ Boston, MA 02111-1307, USA.
4444
</refsynopsisdiv>
4545

4646
<refsect1>
47-
<title>Experimental</title>
47+
<title>Dealing with /opt</title>
4848
<para>
49-
<emphasis role="bold">Note this feature is currently considered
50-
experimental.</emphasis> It may not work correctly and some of its
51-
semantics may be subject to change. Positive or negative feedback are both
52-
welcome and may be provided at
53-
<ulink url="https://github.com/ostreedev/ostree/discussions"/>. If using
54-
the feature via rpm-ostree, feedback may also be provided at
55-
<ulink url="https://github.com/coreos/rpm-ostree/issues/233"/>.
49+
<emphasis role="bold">Note:</emphasis> In general, the preference for
50+
handling <filename>/opt</filename> software is to use symbolic links for
51+
just the parts that need to be mutable to some place in
52+
<filename>/var</filename> that can be created e.g. by a
53+
<literal>tmpfiles.d</literal> dropin. For more information, see
54+
<ulink url="https://bootc-dev.github.io/bootc/building/guidance.html#handling-read-only-vs-writable-locations"/>.
5655
</para>
5756
</refsect1>
5857

rust-bindings/conf/ostree.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ girs_directories = [ "../gir-files" ]
1818

1919
generate = [
2020
"OSTree.AsyncProgress",
21+
"OSTree.BlobReader",
2122
"OSTree.BootconfigParser",
2223
"OSTree.ChecksumFlags",
2324
"OSTree.ContentWriter",
@@ -83,6 +84,7 @@ manual = [
8384
"GLib.Quark",
8485
"GLib.String",
8586
"GLib.Variant",
87+
"GLib.VariantDict",
8688
"GLib.VariantType",
8789

8890
# [MANUAL] types implemented by hand

rust-bindings/src/auto/blob_reader.rs

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)