Skip to content

Use dmidecode crate to avoid hostbin#91

Open
bleggett wants to merge 3 commits intomainfrom
bleggett/rust-dmidecode
Open

Use dmidecode crate to avoid hostbin#91
bleggett wants to merge 3 commits intomainfrom
bleggett/rust-dmidecode

Conversation

@bleggett
Copy link
Copy Markdown
Contributor

@bleggett bleggett commented Apr 1, 2026

https://docs.rs/dmidecode/latest/dmidecode/

This captures all of the bytes, but does not fully decode as many into human-readable format as the binary does.

But it has the added benefit of working exactly the same way inside and outside of a container, and not requiring a host (or container) bin, or a custom impl, so on the whole I like it better as an option.

I looked at possibly just slurping raw bytes from /sys/firmware/dmi/tables/ in the the host namespace context, and then replaying the raw bytes from that against an OCI-local dmidecode binary - but dmidecode has some quirks that make that tricky, and that doesn't solve for running the naked edera-check binary outside of an OCI image - this does.

Fixes part-of: #86

@bleggett bleggett requested review from a team, mdwyer-edera and tycho April 1, 2026 20:28
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.

1 participant