Skip to content

fix(images): use effective repos for ISO build - #18648

Merged
reuben olinsky (reubeno) merged 1 commit into
microsoft:4.0from
reubeno:fix-iso-build
Aug 28, 2026
Merged

fix(images): use effective repos for ISO build#18648
reuben olinsky (reubeno) merged 1 commit into
microsoft:4.0from
reubeno:fix-iso-build

Conversation

@reubeno

@reubeno reuben olinsky (reubeno) commented Aug 27, 2026

Copy link
Copy Markdown
Member

Read the effective repositories from Kiwi's imported image description instead of duplicating the Azure Linux CDN URL in config.sh. This will align the ISO build's consumption of packages with other images, and as a side effect, correct the
ISO build for PME-prod.

This uses the repositories selected by the Koji task while preserving local image builds, where the imported description contains the configured Azure Linux repository.

Adds libxml2 as an explicit dependency to ensure xmllint is present.

Validation

Validated with local build as well as with a scratch koji build. In both cases the updated logic in config.sh correctly identified the correct repository to pull packages from.

Copilot AI balanced review requested due to automatic review settings August 27, 2026 23:03

Copilot AI 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.

Pull request overview

Updates ISO package sourcing to use repositories from Kiwi’s effective configuration.

Changes:

  • Parses build repositories from /image/config.xml.
  • Adds explicit Python 3 dependency.
  • Dynamically configures DNF repository arguments.

Reviewed changes

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

File Description
base/images/vm-iso-installer/config.sh Builds the offline repository from Kiwi-selected sources.
base/images/vm-iso-installer/vm-iso-installer.kiwi Adds Python 3 and updates repository documentation.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread base/images/vm-iso-installer/config.sh Outdated
Comment thread base/images/vm-iso-installer/config.sh
@reubeno

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@reubeno
reuben olinsky (reubeno) marked this pull request as ready for review August 28, 2026 03:38
@reubeno
reuben olinsky (reubeno) requested a review from a team as a code owner August 28, 2026 03:38
Comment thread base/images/vm-iso-installer/config.sh Outdated
Read the effective repositories from Kiwi's imported image description
instead of duplicating the Azure Linux CDN URL in config.sh.

This uses the repositories selected by the Koji task while preserving local
image builds, where the imported description contains the configured Azure
Linux repository.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a8a571f0-e745-492a-8ce1-23b818f3b51e

Copilot AI 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.

Pull request overview

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

# configured Azure Linux repo and Koji builds use the repos selected by the task.
# Kiwi includes imageonly repos in the finished appliance but does not use
# them during the build. Exclude them so this mirrors Kiwi's package inputs.
BUILD_REPO_XPATH="/image/repository[not(translate(@imageonly, 'TRUE', 'true') = 'true')]/source[@path != '']/@path"
Comment thread base/images/vm-iso-installer/vm-iso-installer.kiwi
@reubeno

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@reubeno
reuben olinsky (reubeno) merged commit cbc8f5c into microsoft:4.0 Aug 28, 2026
11 checks passed
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.

3 participants