Skip to content

spec: backport --entry-type support to kernel-install preun - #1463

Closed
bmastbergen wants to merge 1 commit into
_pr_parking_ciq-6.12.y_run30136556273from
ciq-6.12.y-uki-fix
Closed

spec: backport --entry-type support to kernel-install preun#1463
bmastbergen wants to merge 1 commit into
_pr_parking_ciq-6.12.y_run30136556273from
ciq-6.12.y-uki-fix

Conversation

@bmastbergen

Copy link
Copy Markdown
Collaborator

Without --entry-type, uninstalling the UKI package runs kernel-install remove which removes all boot entries for that kernel version, including the Type #1 BLS entry belonging to kernel-core. This was fixed upstream in the 6.18 spec.

Backport the fix: add -e flag support to the kernel_variant_preun macro which, when kernel-install supports --entry-type, passes --entry-type type1 for core packages and --entry-type type2 for UKI packages. A runtime probe ensures graceful degradation on older systemd versions.

Without --entry-type, uninstalling the UKI package runs
`kernel-install remove` which removes all boot entries for that kernel
version, including the Type #1 BLS entry belonging to kernel-core.
This was fixed upstream in the 6.18 spec.
Backport the fix: add -e flag support to the kernel_variant_preun macro
which, when kernel-install supports --entry-type, passes --entry-type
type1 for core packages and --entry-type type2 for UKI packages. A
runtime probe ensures graceful degradation on older systemd versions.
Signed-off-by: Brett Mastbergen <bmastbergen@ciq.com>
@bmastbergen
bmastbergen requested a review from a teamJuly 22, 2026 17:57

@PlaidCatPlaidCat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:shipit:

@PlaidCat
PlaidCat requested a review from a teamJuly 23, 2026 15:24
@ciq-kernel-automation
ciq-kernel-automationBot changed the base branch from ciq-6.12.y to _pr_parking_ciq-6.12.y_run30136556273July 25, 2026 00:43
@ciq-kernel-automation

Copy link
Copy Markdown

⏳ A rebase of ciq-6.12.y to the latest upstream stable release is in progress. This PR has been temporarily moved to _pr_parking_ciq-6.12.y_run30136556273 while the branch is updated.

Workflow run: https://github.com/ctrliq/kernel-src-tree/actions/runs/30136556273

@ciq-kernel-automation

Copy link
Copy Markdown

⚠️ The rebase of ciq-6.12.y failed. This PR remains on temporary branch _pr_parking_ciq-6.12.y_run30136556273 to prevent it from being closed. The kernel team is investigating the failure.

Workflow run: https://github.com/ctrliq/kernel-src-tree/actions/runs/30136556273

@bmastbergen

Copy link
Copy Markdown
CollaboratorAuthor

Superseded by new PR with updated base branch.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@bmastbergen@PlaidCat