1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 06:45:13 +01:00
Commit Graph

3591 Commits

Author SHA1 Message Date
Colin Walters
d368ea8bc8 Merge pull request #1549 from bootc-dev/release-1.7.1
Release 1.7.1
v1.7.1
2025-08-26 07:24:45 -04:00
bootc-actions-token[bot]
5e687f7472 Release 1.7.1
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-25 21:55:55 +00:00
Colin Walters
0ebd518272 Merge pull request #1547 from cgwalters/workaround-buildinfo
build-sys: Work around #1546
2025-08-25 17:23:24 -04:00
Colin Walters
d61f681c4e sysroot: Fix regression in status locking
The previous locking code was just wrong; my bad for not stress
testing it.

Fix it an add a test too.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-25 15:40:52 -04:00
Colin Walters
fd1e538f4f Merge pull request #1538 from castrojo/patch-3
governance: add community manager role
2025-08-25 12:26:35 -04:00
Colin Walters
926dec188d build-sys: Work around #1546
While we work to fix the base image (again).

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-25 09:29:17 -04:00
bootc-actions-token[bot]
ae8930b1ad Release 1.7.0
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v1.7.0
2025-08-21 16:33:13 -04:00
John Eckersberg
0bb24c03d2 Merge pull request #1539 from jmarrero/hide-soft-reboot
cli: hide --soft-reboot as ostree side needs further stabilization
2025-08-21 14:01:35 -04:00
Joseph Marrero Corchado
bf45f609e5 cli: hide --soft-reboot as ostree side needs further stabilization
https://github.com/ostreedev/ostree/issues/3503

Signed-off-by: Joseph Marrero Corchado <jmarrero@redhat.com>
2025-08-21 13:01:26 -04:00
Jorge O. Castro
c1d6f10f73 governance: add community manager role
Feel free to adjust wording as needed, this is just an example.

This is a good way to empower PMs other folks to be able to help out with meta things around the project. We explicitly list the the role in governance so that the people listed here end up in the main cncf maintainers.csv.

Being in the csv file is important because it is a check the CNCF uses to ensure maintainers are requesting the resources. And for CFP submissions, "did one of the maintainers submit this talk or was it someone else?", etc.
2025-08-21 10:16:45 -04:00
Colin Walters
662cdee9b5 Merge pull request #1532 from alexlarsson/aboot-support
install: Automatically configure aboot
2025-08-21 08:09:26 +02:00
John Eckersberg
2cb3ef2202 Merge pull request #1536 from cgwalters/ostree-lock-spinner-async
ostree: Use indicatif + async for lock wait
2025-08-20 14:08:40 -04:00
Colin Walters
fa81c1ec57 ostree: Use indicatif + async for lock wait
- Indicatif instead of eprintln! ensures we handle ttys vs not always;
  on a non-tty we're silent
- Use a proper async task instead of a try+sleep loop
- But do try once outside of the await to make the happy path
  avoid emitting a wait message

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-20 18:06:36 +02:00
Colin Walters
7a82af6324 sysroot: Log locking to stderr, not stdout
Otherwise we just completely break machine readability
with `bootc status --format=json`.

(We probably need a full audit to stop using `{,e}println!`
 globally)

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-20 10:51:14 -04:00
Alexander Larsson
7d276a2ad6 install: Detect aboot images and enable the correct bootloader
Aboot images need to have the ostree bootloader backend set
to "aboot", otherwise the deploy during bootc install will
not create the correct boot A/B symlinks, and additionally
once booted will not correctly deploy to the aboot partition
during an update.

To see whethere an image is using aboot, we look for the "aboot.img"
file in the kernel modules dir.

NOTE: In order to correctly handle running bootc from a different
container than the to-be-installed container we look for aboot.img
in the actual commit, not just in the running container.
2025-08-20 12:53:52 +02:00
Colin Walters
15379466d5 Merge pull request #1531 from cgwalters/rhsm-default
build-sys: Enable rhsm feature on rhel-like systems by default
2025-08-19 17:15:03 +02:00
Colin Walters
722ab141df build-sys: Enable rhsm feature on rhel-like systems by default
The Dockerfile right now doesn't build an RPM, so this
ensures the two build systems match. We should probably
also change the RPM to use this Makefile.

Motivated by accidentally merging a change that breaks
with the feature on.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-19 15:14:08 +02:00
Alexander Larsson
6d2eb2aaa9 install: Access sysroot via /proc/$pid instead of /proc/self
/proc/self doesn't resolve correctly for subprocesses that may be
spawned. In particular, if ostree spawns aboot-deploy to update the
aboot symlinks that will fail.
2025-08-19 13:40:24 +02:00
Colin Walters
f7c4bd19ec Merge pull request #1530 from Johan-Liebert1/rhsm-fix
rhsm: Update function call to match new Storage API
2025-08-19 12:47:08 +02:00
Johan-Liebert1
f5d26217bf rhsm: Update function call to match new Storage API
Update according to API changes introduced in
https://github.com/bootc-dev/bootc/pull/1525

Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
2025-08-19 15:35:29 +05:30
Pragyan Poudyal
147f16c32a Merge pull request #1525 from cgwalters/store-no-deref
Some more refactoring of storage
2025-08-19 10:09:26 +05:30
Colin Walters
f3453579a3 Merge pull request #1504 from cgwalters/install-cleanup-aleph
install: Move Aleph bits to a separate module
2025-08-18 19:20:00 +02:00
ckyrouac
05030a3d9a rechunker: Don't deduplicate by checksum with exclusive components
This allows files with duplicate contents (and checksums) to be stored
in different layers when using the rechunker.

Signed-off-by: ckyrouac <ckyrouac@redhat.com>
2025-08-18 12:50:17 -04:00
Colin Walters
a99294fa90 Rename imgstorage -> podstorage
Naming things is hard, but as of right now since this storage
instance doesn't hold the booted host, let's call it
`podstorage` to make clear is association and purpose in
being used by podman and related tools.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-18 09:56:43 +02:00
Colin Walters
3dded02c8a Rename imgstorage/Storage -> CStorage
Previously we had two different `Storage` structs, this
ensures that the main one is primary and `CStorage` is secondary.

This should be less confusing.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-18 09:56:43 +02:00
Colin Walters
aaf09ee919 install: Change to access c_storage via overall Storage
It's just way too confusing we have two structs called `Storage`.
I'm going to rename one of them after this. But as prep for that,
switch to dynamically initialzing the containers-storage version
from the main Storage.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-18 09:56:43 +02:00
Colin Walters
4d540c8c6f store: Drop pub for internal composefs ref
This was a copy-pasteo from the ostree bits.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-18 09:56:43 +02:00
Colin Walters
5b17310dac store: Drop deref for ostree repo
The goal here is to make all three types of storage effectively
equal peers.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-18 09:56:43 +02:00
Colin Walters
5cb20de4e6 store: Add accessors for the ostree repo
To make clearer what it is vs the other two storage types.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-18 09:56:43 +02:00
Gursewak Mangat
d3ddd17015 Merge pull request #1523 from gursewak1997/use-ghapp-token
Update workflow to use Github App token for reviewer assignment
2025-08-18 00:40:20 -07:00
gursewak1997
4e32026294 Update workflow to use gh-app token for assignment 2025-08-16 13:49:02 -07:00
Joseph Marrero Corchado
1d5974e6cd Merge pull request #1392 from jmarrero/soft-reboots
lib: add support for soft-reboots
2025-08-16 10:01:00 -04:00
Joseph Marrero Corchado
0a3fa5d2d4 cli: add support for soft-reboots
This commit adds --soft-reboot=required|auto to the
cli which uses the ostree api's to setup soft-reboots
during switch, update and rollback operations.

Co-authored-by: Colin Walters <walters@verbum.org>

Signed-off-by: Joseph Marrero Corchado <jmarrero@redhat.com>
Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 14:52:49 -04:00
Joseph Marrero Corchado
7ae83d1e00 Update to ostree v2025.3
This will enable soft reboots.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 14:49:27 -04:00
Gursewak Mangat
00dea6e440 Merge pull request #1521 from gursewak1997/fix-auto-review-perms
Add missing perms and fix reviewer assignment API call
2025-08-15 11:46:33 -07:00
Colin Walters
eb717ab45f Merge pull request #1512 from cgwalters/drop-grub-feature
Map grub feature to composefs-backend and import parser/bls
2025-08-15 20:41:55 +02:00
Colin Walters
e99f5cc2d0 Merge pull request #1518 from cgwalters/drop-store-abstraction
store: Remove dynamic abstraction
2025-08-15 20:23:45 +02:00
Colin Walters
7018168403 bls_config: use crate to compare UAPI versions
Default string comparisons are wrong for this.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 17:16:50 +02:00
Colin Walters
cbb6eaa70f bls_config: Rework to be more spec compliant
- Handle multiple initrd entries.
- Add support for machine-id and sort-key.

To do this we can't just map the keys into JSON because we need
to handle multiple values. Switch to a manual parser.

Assisted-by: Gemini CLI+gemini-2.5-pro
Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 17:16:50 +02:00
Johan-Liebert1
1a6e914a6f parser/bls: New file
Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 17:16:50 +02:00
Colin Walters
376dda2836 Rename grub feature to composefs-backend
This should make it easier to incrementally merge changes
here to main.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 17:16:50 +02:00
Colin Walters
1324091858 Merge pull request #1519 from cgwalters/unbuffer-stdout
system-reinstall-bootc: Ensure stdout is flushed
2025-08-15 17:10:51 +02:00
Colin Walters
7d8229cfe3 system-reinstall-bootc: Ensure stdout is flushed
We're seeing a CI failure where the final reinstall message
isn't seen, I think this might fix it.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 16:04:08 +02:00
Colin Walters
c1b0a19540 Merge pull request #1515 from cgwalters/testing-farm-sync
ci/tmt: distro-sync ostree
2025-08-15 15:33:42 +02:00
Colin Walters
e7a3835946 ci/tmt: distro-sync ostree+systemd
This is a hackaround for https://gitlab.com/redhat/centos-stream/containers/bootc/-/issues/1174

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 14:21:49 +02:00
gursewak1997
98e9e4e661 Add missing perms and fix reviewer assignment API call 2025-08-15 00:53:31 -07:00
Colin Walters
82057f869c store: Remove dynamic abstraction
A while ago we added a trait in preparation for multiple backends.
The current composefs branch ignores it and has a bunch of
`if {} else {}`.

Looking at this, what I think will work better in the end is
actually a more refined version of the `if {} else {}` model
instead of trying to really flesh out this trait. It's
hard to say of course until we get there, but the trait
approach forces a high level of abstraction vs just trying
to factor out common code between two backends.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-08-15 09:33:27 +02:00
Gursewak Mangat
531cee5719 Merge pull request #1517 from gursewak1997/temp-workflow-test
fix: use gh pr edit to avoid JSON formatting issues
2025-08-14 13:21:22 -07:00
gursewak1997
44872ff4d1 fix: Use gh pr edit to avoid JSON formatting issues 2025-08-14 13:09:58 -07:00
Gursewak Mangat
d92333cb4f Merge pull request #1508 from gursewak1997/unset-gh-pat
Resolve GH_TOKEN conflict in auto-reviewer workflow
2025-08-14 12:44:58 -07:00