fix: verify QEMU registration instead of trusting the installer's exi… - #4
Merged
Merged
Conversation
…t code tonistiigi/binfmt exits 0 even when it fails to mount binfmt_misc and register the emulator - it only logs the error. That let 'setup-qemu' report success while riscv64 support was silently never registered, surfacing as a confusing failure two steps later (e.g. 'cartesi doctor' reporting "Your system does not support riscv64 architecture"). Check /proc/sys/fs/binfmt_misc/qemu-riscv64 directly after running the installer and fail the step with an explanatory message if it's missing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
tuler
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…t code
tonistiigi/binfmt exits 0 even when it fails to mount binfmt_misc and register the emulator - it only logs the error. That let 'setup-qemu' report success while riscv64 support was silently never registered, surfacing as a confusing failure two steps later (e.g. 'cartesi doctor' reporting "Your system does not support riscv64 architecture").
Check /proc/sys/fs/binfmt_misc/qemu-riscv64 directly after running the installer and fail the step with an explanatory message if it's missing.
I'd tag this as
v1.1.1.