containers / bootc

Boot and upgrade via container images
https://containers.github.io/bootc/
Apache License 2.0
573 stars 71 forks source link

Add requirement on exact matching host architecture #682

Open cgwalters opened 1 month ago

cgwalters commented 1 month ago

Today for the case of an image without a manifest list e.g. podman pull will just warn if the target image architecture doesn't match. One reason for this is that one may have qemu userspace emulation enabled.

For bootc, we are never going to support "booting" with qemu emulation, doesn't make any sense. We should change the fetch logic to hard require an architecture match (probably in ostree-rs-ext, but we could add a check here too).

cgwalters commented 1 month ago

This also relates to https://github.com/containers/bootc/issues/640 in that if we started spawning the new root as a container we could in theory get some of this for free...but we'd actually want to somehow explicitly turn off the binfmt_misc when targeting the new root, which seems messy.

cgwalters commented 1 week ago

PR in https://github.com/ostreedev/ostree-rs-ext/pull/656