Skip to content

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

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

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 team July 22, 2026 17:57

@PlaidCat PlaidCat 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 team July 23, 2026 15:24
@ciq-kernel-automation
ciq-kernel-automation Bot changed the base branch from ciq-6.12.y to _pr_parking_ciq-6.12.y_run30136556273 July 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

Sign up for free to 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