kubernetes-sigs/image-builder

OCI build issues when using custom repos

kkeshavamurthy opened this issue · 0 comments

What steps did you take and what happened:
When a Ubuntu image is booted up on OCI, the apt modules in cloud-final image updates the apt sources. When installing from private repos is enabled withextra_repos, the task to install the extra repos is run before cloud-final updates the existing sources. This results in having stock & private repos enabled on image and results in unexpected behavior.

What did you expect to happen:
Stock public repos disabled & only private repos should be enabled.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

Project (Image Builder for Cluster API, kube-deploy/imagebuilder, konfigadm):

Additional info for Image Builder for Cluster API related issues:

  • OS (e.g. from /etc/os-release, or cmd /c ver):
  • Packer Version:
  • Packer Provider:
  • Ansible Version:
  • Cluster-api version (if using):
  • Kubernetes version: (use kubectl version):

/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]