Skip to content

Support for setting Alpine/Ubuntu/Debian mirrors - #17072

Merged
netmousecz merged 4 commits into
mainfrom
milosjunek/azure-linux-parameters-in-build-rootfs
Jul 3, 2026
Merged

netmousecz merged 4 commits into
mainfrom
milosjunek/azure-linux-parameters-in-build-rootfs

Conversation

@netmousecz

Copy link
Copy Markdown
Contributor

To double check:

Copilot AI review requested due to automatic review settings July 3, 2026 07:46

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

This PR extends the eng/common/cross/build-rootfs.sh rootfs builder to allow overriding default package repository endpoints, enabling users to point Ubuntu/Debian (APT) and Alpine (APK) rootfs builds at custom mirrors.

Changes:

  • Adds new CLI flags to override Ubuntu/Debian APT base URIs and Alpine repository base URI.
  • Applies the Alpine override when configuring apk.static repositories.
  • Applies Ubuntu/Debian overrides to the __UbuntuRepo value used by debootstrap / install-debs.py.
Comments suppressed due to low confidence (1)

eng/common/cross/build-rootfs.sh:421

  • usage() documents --jobs N, but the argument parser only recognizes --use-jobs. Either the help text is misleading or the parser is missing the documented alias, which can cause users to think the flag is supported when it isn't.
        --use-jobs)
            shift
            MAXJOBS=$1
            ;;

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

Comment thread eng/common/cross/build-rootfs.sh Resolved
@netmousecz

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree company="Microsoft"

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings July 3, 2026 09:15
@netmousecz
netmousecz enabled auto-merge (squash) July 3, 2026 09:16

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 1 out of 1 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

eng/common/cross/build-rootfs.sh:441

  • Argument parsing currently accepts --use-jobs but not --jobs, even though usage() advertises --jobs. Consider accepting both as aliases to preserve compatibility and align CLI/help output.
        --use-jobs)
            shift
            MAXJOBS=$1
            ;;

Comment thread eng/common/cross/build-rootfs.sh Resolved
Comment thread eng/common/cross/build-rootfs.sh Resolved
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings July 3, 2026 09:30
Co-authored-by: Copilot Autofix powered by AI <[email protected]>

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 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread eng/common/cross/build-rootfs.sh Resolved
Comment thread eng/common/cross/build-rootfs.sh Resolved
Copilot AI review requested due to automatic review settings July 3, 2026 09:33

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 1 out of 1 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

eng/common/cross/build-rootfs.sh:434

  • usage() advertises --jobs N but the argument parser only handles --use-jobs. Also, --use-jobs currently accepts a missing argument and can accidentally consume the next option (e.g. --use-jobs --skipunmount), causing mis-parsing of the remaining arguments.
        --use-jobs)
            shift
            MAXJOBS=$1
            ;;

@netmousecz
netmousecz merged commit b8b677c into main Jul 3, 2026
10 of 11 checks passed
@netmousecz
netmousecz deleted the milosjunek/azure-linux-parameters-in-build-rootfs branch July 3, 2026 10:11
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 13, 2026
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