Skip to content

ubuntu with PTL BKC packages#353

Merged
samueltaripin merged 26 commits intomainfrom
multirepo-priority
Feb 4, 2026
Merged

ubuntu with PTL BKC packages#353
samueltaripin merged 26 commits intomainfrom
multirepo-priority

Conversation

@samueltaripin
Copy link
Copy Markdown
Contributor

@samueltaripin samueltaripin commented Jan 19, 2026

Merge Checklist

All boxes should be checked before merging the PR

  • [/] The changes in the PR have been built and tested
  • [/] Ready to merge

Description

  1. enables PTL BKC image build support

Any Newly Introduced Dependencies

How Has This Been Tested?

image

@samueltaripin samueltaripin requested a review from yockgen January 22, 2026 09:37
@samueltaripin samueltaripin marked this pull request as ready for review January 22, 2026 09:45
Copilot AI review requested due to automatic review settings January 22, 2026 09:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 enables PTL BKC (Best Known Configuration) image build support for Ubuntu by implementing comprehensive package repository management, priority-based package resolution, and shell command parsing improvements.

Changes:

  • Added APT repository priority system with preference file generation
  • Enhanced shell command parsing to handle nested quotes and special characters
  • Implemented GPG key management and trusted repository support

Reviewed changes

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

Show a summary per file
File Description
internal/utils/shell/shell_yaml_config_test.go Tests for echo commands with nested quotes and chroot verification
internal/utils/shell/shell.go Enhanced quote parsing, added command mappings, and improved separator detection
internal/provider/ubuntu/ubuntu.go Repository priority support and user repository integration
internal/provider/elxr/elxr.go APT sources generation from repositories
internal/ospackage/debutils/verify_test.go Test for trusted repository verification bypass
internal/ospackage/debutils/resolver.go APT priority-based package resolution and conflict handling
internal/ospackage/debutils/download.go Repository priority field addition
internal/image/imageos/imageos.go AppArmor wrapper for chroot environment
internal/config/validate/validate_test.go Validation tests for trusted repositories
internal/config/schema/os-image-template.schema.json Schema updates for repository priorities and trusted repos
internal/config/global.go Default temp directory change to ./tmp
internal/config/config.go Priority field added to PackageRepository
internal/config/apt_sources_test.go Comprehensive tests for APT sources generation
internal/config/apt_sources_integration_test.go Integration tests for repository configuration
internal/config/apt_sources.go APT sources and preferences file generation logic
image-templates/ubuntu24-x86_64-minimal-ptl.yml PTL BKC image template with repository configurations

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

Comment thread internal/config/schema/os-image-template.schema.json
Comment thread internal/config/schema/os-image-template.schema.json Outdated
Comment thread internal/ospackage/debutils/resolver.go Outdated
Comment thread image-templates/ubuntu24-x86_64-minimal-ptl.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@samueltaripin samueltaripin force-pushed the multirepo-priority branch 2 times, most recently from e5324b9 to d6aefd1 Compare January 26, 2026 07:57
@samueltaripin samueltaripin merged commit d8fb66f into main Feb 4, 2026
22 checks passed
@samueltaripin samueltaripin deleted the multirepo-priority branch March 2, 2026 01:17
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