Skip to content

composefs/uki: Remove stripping .staged suffix on finalize#2171

Merged
cgwalters merged 1 commit intobootc-dev:mainfrom
Johan-Liebert1:uki-staged-update
Apr 27, 2026
Merged

composefs/uki: Remove stripping .staged suffix on finalize#2171
cgwalters merged 1 commit intobootc-dev:mainfrom
Johan-Liebert1:uki-staged-update

Conversation

@Johan-Liebert1
Copy link
Copy Markdown
Collaborator

We were stripping .staged suffix from UKI/UKI Addons whenever unstaging the bootloader entries for the currently staged composefs deployment. Earlier we needed this as we were putting all EFI binaries in ESP/EFI/Linux all of which (staged or unstaged) would be picked up by the bootloader which is not what we want.

We now put all EFI binaries in ESP/EFI/Linux/bootc and use BLS .conf files to point to the binaries, which makes the .staged suffix for EFI binaries irrelevant.

We were stripping `.staged` suffix from UKI/UKI Addons whenever
unstaging the bootloader entries for the currently staged composefs
deployment. Earlier we needed this as we were putting all EFI
binaries in `ESP/EFI/Linux` all of which (staged or unstaged) would
be picked up by the bootloader which is not what we want.

We now put all EFI binaries in `ESP/EFI/Linux/bootc` and use BLS .conf
files to point to the binaries, which makes the `.staged` suffix for
EFI binaries irrelevant.

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Copy link
Copy Markdown
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 simplifies the composefs_backend_finalize logic by removing the rename_staged_uki_entries function and its associated calls. Consequently, the requirement for an ESP mount in this context is eliminated, and unused imports from rustix have been cleaned up. I have no feedback to provide as there are no review comments to evaluate.

@Johan-Liebert1
Copy link
Copy Markdown
Collaborator Author

Johan-Liebert1 commented Apr 27, 2026

ostree test on f43 failed with a flake

content: error: Installing to filesystem: Creating ostree deployment: Pulling: Importing: Unencapsulating base: failed to invoke method GetBlob: fetching blob: received unexpected HTTP status: 502 Bad Gateway

reran

@cgwalters cgwalters enabled auto-merge (rebase) April 27, 2026 12:34
@cgwalters
Copy link
Copy Markdown
Collaborator

One random thing I was thinking we probably don't need to write staged bootloader entries until we start finalization

@cgwalters cgwalters merged commit 77cab5f into bootc-dev:main Apr 27, 2026
98 of 104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants