Skip to content

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

Open
reuben olinsky (reubeno) wants to merge 1 commit into
microsoft:4.0from
reubeno:fix-iso-build
Open

fix(images): use effective repos for ISO build#18648
reuben olinsky (reubeno) wants to merge 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 python3 as an explicit dependency. (It was already being pulled in anyway for anaconda.)

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.

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 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
DNF_REPO_ARGS=(--setopt=reposdir=/dev/null)
for i in "${!BUILD_REPOS[@]}"; do
repo_id="kiwi-build-$i"
echo "Using build repository: ${BUILD_REPOS[$i]}"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

While theoretically possible, we don't have any known use cases where an ISO would be built using a repo URL that has embedded secrets in its query string. At present, having this diagnostic info available in the logs does have significant value -- to confirm where the packages were sourced from.

@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
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