Skip to content

fix: use linux-image-virtual metapackage for ubuntu 25.10 and 26.04#259

Open
amd-aliem wants to merge 1 commit into
AMDEPYC:mainfrom
amd-aliem:build-issues
Open

fix: use linux-image-virtual metapackage for ubuntu 25.10 and 26.04#259
amd-aliem wants to merge 1 commit into
AMDEPYC:mainfrom
amd-aliem:build-issues

Conversation

@amd-aliem

Copy link
Copy Markdown
Contributor

Use linux-image-virtual package to specify default kernel package for the distro.

Pinned kernel versions get removed from repos when Ubuntu publishes newer point releases, breaking image builds:
E: Unable to locate package linux-modules-6.17.0-8-generic in https://github.com/AMDEPYC/sev-certify/actions/runs/28899258652/job/85733213329

Use linux-image-virtual metapackage which tracks the current kernel without pulling in firmware blobs (linux-firmware, intel-microcode, amd64-microcode). Using linux-image-virtual vs linux-image-generic appears to save ~500MB. Making the change to 26.04 as well, since that same CI run failed for 26.04 when the host image size became > 1G.

I tested both changes on my fork and got passing results:

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.

Pull request overview

This PR updates the Ubuntu 25.10 and 26.04 mkosi image definitions to avoid pinning specific kernel package versions that can disappear from Ubuntu repositories over time, which breaks CI image builds. It does so by switching to the linux-image-virtual metapackage so the images track the currently-available kernel without pulling in large firmware/microcode-related packages.

Changes:

  • Switch Ubuntu 25.10 host/guest images from a pinned linux-image-<ver>-generic kernel package to linux-image-virtual.
  • Switch Ubuntu 26.04 host/guest images from linux-image-generic + explicit modules packages to linux-image-virtual.
  • Reduce susceptibility to repo churn (point release kernel removals) in mkosi-based image builds.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
images/host-ubuntu-26.04/mkosi.conf Replace explicit kernel image/modules package set with linux-image-virtual.
images/host-ubuntu-25.10/mkosi.conf Replace pinned kernel image package with linux-image-virtual.
images/guest-ubuntu-26.04/mkosi.conf Replace explicit kernel image/modules package set with linux-image-virtual.
images/guest-ubuntu-25.10/mkosi.conf Replace pinned kernel image/modules package set with linux-image-virtual.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Pinned kernel versions get removed from repos when Ubuntu publishes
newer point releases, breaking image builds. Use linux-image-virtual
metapackage which tracks the current kernel without pulling in
firmware blobs (linux-firmware, intel-microcode, amd64-microcode).

Signed-off-by: Amanda Liem <aliem@amd.com>
@amd-aliem amd-aliem enabled auto-merge (rebase) July 8, 2026 15:52
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