Skip to content

TOOL-30781 point linux-pkg's os-upgrade branch at the resolute suite - #411

Merged
prakashsurya merged 1 commit into
os-upgradefrom
projects/os-upgrade-resolute-distribution
Aug 8, 2026
Merged

TOOL-30781 point linux-pkg's os-upgrade branch at the resolute suite#411
prakashsurya merged 1 commit into
os-upgradefrom
projects/os-upgrade-resolute-distribution

Conversation

@prakashsurya

Copy link
Copy Markdown
Contributor

Problem

linux-pkg's os-upgrade branch still defaults UBUNTU_DISTRIBUTION to noble, so every linux-pkg/os-upgrade job points apt at a suite the branch's mirror does not carry.

The mirror is no longer what's blocking. os-upgrade/latest/ promoted on 2026-08-08 05:09 UTC (snapshot 8411ab44) and publishes resolute, and only resolute:

ubuntu/dists/   resolute  resolute-backports  resolute-security  resolute-updates
ppas/dists/     resolute  resolute-pgdg  stable

with ubuntu/dists/resolute/Release reporting Codename: resolute / Version: 26.04. Since there are no noble suites under this branch, configure_apt_sources() writes deb <mirror> noble ... lines that resolve to nothing and the jobs die before they get as far as git:

E: The repository '.../os-upgrade/latest/ubuntu noble-backports Release' does not have a Release file.
Error: failed command 'sudo apt-get update'

The generic kernel lookup is pinned the same way; get_kernel_version_for_platform_from_apt() asks for linux-image-generic-hwe-24.04. That one does not hard-fail, which is what makes it worth catching now: resolute still publishes an hwe-24.04 metapackage, and it depends on the same 7.0.0-14.14 kernel as hwe-26.04, so the stale pin resolves to the right kernel by accident and would not have announced itself for the rest of the cycle.

Solution

The solution taken in this PR is to bump both pointers:

  • UBUNTU_DISTRIBUTION default noble -> resolute in lib/common.sh. It stays environment-overridable (${UBUNTU_DISTRIBUTION:-resolute}, from TOOL-30719), so a build can still be aimed at another suite without editing the branch.
  • the generic HWE metapackage linux-image-generic-hwe-24.04 -> -hwe-26.04.

This targets os-upgrade rather than develop, since it cannot land on develop until the Phase 4 cutover. 24.04 analog: DLPX-91976 / #322.

The branch was re-reset to develop (01b2d791e -> fef16a859) before this change, since it had drifted behind again and was missing #408, #410, TOOL-30738 and #405. That reset is also what drops the 9999.0.0.0 mirror-host sentinel, so there is nothing separate to do for it here.

Testing Done

  • make check (shellcheck + shfmt) passes.
  • The default resolves as intended and the environment override still wins:
(unset)                     -> resolute
UBUNTU_DISTRIBUTION=noble   -> noble
  • Checked against the promoted mirror that every suite the new default asks for is actually published: resolute{,-updates,-security,-backports} under ubuntu/, and resolute + resolute-pgdg + stable under ppas/.
  • Confirmed linux-image-generic-hwe-26.04 exists in resolute (7.0.0-14.14 in resolute, 7.0.0-29.29 in resolute-updates), so the new pin resolves.

No package build has been run against this yet. build-packages on os-upgrade is the next step and is where the real fallout is expected to show up; the intent is to fix-forward on the branch from there.

…solute

The os-upgrade mirror published its first resolute snapshot on 2026-08-08, and
it carries resolute only: resolute{,-updates,-security,-backports} under
ubuntu/, and resolute, resolute-pgdg and stable under ppas/. The branch's
UBUNTU_DISTRIBUTION default still said noble, so configure_apt_sources() wrote
source lines for suites that mirror does not have, and every linux-pkg
os-upgrade job died at apt-get update before it got as far as git:

  E: The repository '.../os-upgrade/latest/ubuntu noble-backports Release'
     does not have a Release file.

The default stays environment-overridable, so a build can still be aimed at
another suite without editing the branch.

get_kernel_version_for_platform_from_apt() pins the generic platform to
linux-image-generic-hwe-24.04. That one would not have failed: resolute still
publishes an hwe-24.04 metapackage, and it depends on the same 7.0.0-14.14
kernel as hwe-26.04, so the stale pin resolves to the right kernel by accident
and would not have announced itself for the rest of the cycle. Point it at
hwe-26.04.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@prakashsurya
prakashsurya merged commit 003c0d2 into os-upgrade Aug 8, 2026
12 checks passed
@prakashsurya
prakashsurya deleted the projects/os-upgrade-resolute-distribution branch August 8, 2026 15:34
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.

1 participant