Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bib: add cross arch building #179

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Commits on Feb 7, 2024

  1. bib: add cross arch building

    This commit adds experimental cross arch building.
    
    I.e. you `bootc-image-builder` on a mac and target an `amd64` machine.
    
    The usage would be:
    ```
    sudo podman run ... \
      --type qcow2 \
      --target-arch amd64 \
         quay.io/centos-bootc/fedora-bootc:eln
    ```
    and this is predicated on the idea that the target container is
    available for both host and target architecture. When that is the case
    the container for the host architecture is used as a buildroot, the
    container for the target architecture is the target tree. Note that some
    stages chroot into the target tree so `qemu-user` is essential for this
    to work so that target achitecture code can be run transparently (because
    only very small amounts of code need to run emulated this is pretty fast
    still).
    
    It will need qemu-user{,-static} installed on the host. Sadly we
    cannot just install qemu-user into the container because the binfmt_misc
    system is global and not namespaced. So while adding the binfmt_misc
    handler from inside the container would work with enough privs it
    would alter the global machine state and we should not do it.
    mvo5 committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    a022513 View commit details
    Browse the repository at this point in the history