Skip to content

fix: verify QEMU registration instead of trusting the installer's exi… - #4

Merged
endersonmaia merged 1 commit into
mainfrom
fix/verify-qemu-registration
Aug 7, 2026
Merged

fix: verify QEMU registration instead of trusting the installer's exi…#4
endersonmaia merged 1 commit into
mainfrom
fix/verify-qemu-registration

Conversation

@endersonmaia

Copy link
Copy Markdown
Contributor

…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.

…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>
@endersonmaia
endersonmaia requested a review from tuler August 7, 2026 18:13
@endersonmaia endersonmaia self-assigned this Aug 7, 2026
@endersonmaia
endersonmaia merged commit 2a783a3 into main Aug 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants