Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-84183

building a custom base image fails with custom repo names

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-9.6, rhel-10.0, rhel-10.1, rhel-9.7
    • rhel-bootc-container
    • No
    • Important
    • 1
    • rhel-image-mode
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Bootc Sprint #8
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      podman build --security-opt=label=disable --cap-add=all \
                                           --device /dev/fuse -t localhost/fedora-bootc . -f testContainer
      STEP 1/8: FROM registry.stage.redhat.io/rhel9/rhel-bootc:9.6
      STEP 2/8: RUN rm -rf /etc/yum.repos.d/*
      --> Using cache 2f24eb93b5b1c7375c7721ab33400fd9a3b43e89a71ddb41c2bec6779b84ba2e
      --> 2f24eb93b5b1
      STEP 3/8: COPY rhel.repo /etc/yum.repos.d/mycustom.repo
      --> Using cache 7cf02a71dfd49b69d4189f15ded23bd0508ec1a32a71883e074b6478a865099d
      --> 7cf02a71dfd4
      STEP 4/8: RUN /usr/libexec/bootc-base-imagectl build-rootfs --manifest=minimal /target-rootfs
      error: Executing compose install: Subprocess failed: ExitStatus(unix_wait_status(256))
      note: --workdir is ignored for --unified-core
      rpm-ostree version: 2025.6
      Discovered rpm-md repositories:
      - rhel-9.6-baseos
      - rhel-9.6-appstream
      - rhel-9.6-nfv
      - rhel-9.6-highavailability
      - rhel-9.6-fast-datapath
      - rhel-9.6-server-ose-4.19
      - rhel-9.6-early-kernel
      error: Installing packages: Unknown rpm-md repository: baseosError executing command: Command '['rpm-ostree', 'experimental', 'compose', 'rootfs', '--source-root=/', '/usr/share/doc/bootc-base-imagectl/manifests/minimal.yaml', '/target-rootfs']' returned non-zero exit status 1.
      Error: building at STEP "RUN /usr/libexec/bootc-base-imagectl build-rootfs --manifest=minimal /target-rootfs": while running runtime: exit status 1
       

              walters@redhat.com Colin Walters
              rhn-support-jmarrero Joseph Marrero Corchado
              Colin Walters Colin Walters
              Wei Shi Wei Shi
              Gabriela Necasova Gabriela Necasova
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: