Skip to content

Conversation

@cgwalters
Copy link
Collaborator

Fixes a regression where bootupd detection was happening before the container was deployed, causing bootc to incorrectly check the host system instead of the target container image. This led to false negatives when the container had bootupd but the host didn't.

The fix moves bootloader detection into a new PostFetchState that's created after the deployment is available, ensuring we check the actual target filesystem.

Fixes: #1778
Assisted-by: Claude Code (Sonnet 4.5)

@github-actions github-actions bot added the area/install Issues related to `bootc install` label Nov 19, 2025
@bootc-bot bootc-bot bot requested a review from jmarrero November 19, 2025 16:00
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly addresses a regression in bootloader detection for the ostree backend by deferring the check until the target image is available. The introduction of PostFetchState is a clean refactoring. However, the fix appears to be incomplete for the composefs backend, which still incorrectly checks the host system's bootloader support when installing from an external image reference. I've also noted a minor code simplification opportunity.

@cgwalters cgwalters marked this pull request as draft November 19, 2025 16:36
@cgwalters cgwalters force-pushed the ostree-outside-container branch from b10e481 to 8b64d4d Compare November 19, 2025 16:37
@cgwalters cgwalters marked this pull request as ready for review November 19, 2025 16:37
Copy link
Contributor

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Fixes a regression where bootupd detection was happening before the
container was deployed, causing bootc to incorrectly check the host
system instead of the target container image. This led to false negatives
when the container had bootupd but the host didn't.

The fix moves bootloader detection into a new PostFetchState that's
created after the deployment is available, ensuring we check the actual
target filesystem.

Fixes: bootc-dev#1778

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the ostree-outside-container branch from 8b64d4d to 09d89cf Compare November 19, 2025 18:00
@cgwalters cgwalters enabled auto-merge (rebase) November 19, 2025 18:41
@cgwalters cgwalters added this to the 1.11.0 milestone Nov 19, 2025
@cgwalters cgwalters merged commit 9a8bf1b into bootc-dev:main Nov 19, 2025
33 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: bootc incorrectly detecting missing bootupd

2 participants