Skip to content

Uki addons followup - #2619

Merged
jmarrero merged 2 commits into
bootc-dev:mainfrom
Johan-Liebert1:uki-addons-followup
Nov 4, 2026
Merged

jmarrero merged 2 commits into
bootc-dev:mainfrom
Johan-Liebert1:uki-addons-followup

Conversation

@Johan-Liebert1

Copy link
Copy Markdown
Member

gc: Only GC UKI Artifacts if boot type is UKI

This prevents us from failing on aboot booted systems that might not
have a /boot directory in the EROFS

Ref: #2598


prepare-install: Check for composefs cmdline in UKI Addons

Instead of failing after pulling in the repo and making all the
filesystem changes, check during install prep if we have multiple
duplicate composefs cmdlines in UKI Addons and make sure we don't have
any composefs cmdline in any global UKI Addon


Closes: #2598

This prevents us from failing on aboot booted systems that might not
have a `/boot` directory in the EROFS

Ref: bootc-dev#2598

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@Johan-Liebert1
Johan-Liebert1 requested review from jmarrero and a balanced review from Copilot November 2, 2026 09:00
@github-actions github-actions Bot added the area/install Issues related to `bootc install` label Nov 2, 2026
@bootc-bot
bootc-bot Bot requested a review from henrywang November 2, 2026 09:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The existing UKI test still expects None for a missing .cmdline section, but find_kernel now returns Some(Cmdline::new()), causing the test to fail.

1 open issue
What changed in this PR

This PR addresses part of #2598 by limiting UKI artifact cleanup to UKI-booted systems and moving addon command-line validation into install preparation.

Changes:

  • Skip UKI artifact garbage collection on other boot types and replace dumpfile parsing panics with contextual errors.
  • Validate selected UKI addons before installation changes the filesystem, rejecting disallowed composefs arguments.
  • Update kernel-discovery callers for optional addon validation and remove obsolete commented-out code.
File Description
crates/​lib/​src/​status.rs Keep container inspection independent of addon validation.
crates/​lib/​src/​kernel.rs Add addon command-line validation and merging during kernel discovery.
crates/​lib/​src/​install.rs Enable addon validation during install preparation.
crates/​lib/​src/​container_export.rs Adapt kernel relocation to the updated discovery signature.
crates/​lib/​src/​bootc_composefs/​gc.rs Isolate UKI artifact cleanup and run it only for UKI boots.
crates/​lib/​src/​bootc_composefs/​boot.rs Remove obsolete commented-out code.
crates/​lib/​src/​boot_artifact.rs Adapt boot artifact preparation to the updated discovery signature.

Review effort: Balanced

Comment thread crates/lib/src/kernel.rs Resolved
Instead of failing after pulling in the repo and making all the
filesystem changes, check during install prep if we have multiple
duplicate composefs cmdlines in UKI Addons and make sure we don't have
any composefs cmdline in any global UKI Addon

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@jmarrero
jmarrero enabled auto-merge (rebase) November 4, 2026 03:28
@jmarrero-bot jmarrero-bot moved this to In Progress in Workstream Nov 4, 2026
@jmarrero-bot jmarrero-bot moved this from In Progress to Done in Workstream Nov 4, 2026

@jmarrero jmarrero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, we keep iterating on the feature as it's experimental.

@jmarrero
jmarrero merged commit 1357991 into bootc-dev:main Nov 4, 2026
54 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.

composefs: follow-ups to #2448 (three regressions)

3 participants