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

Fix UUID to only return Middle Endian on SMBIOS Versions >= 2.6 #8

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

bnason
Copy link
Contributor

@bnason bnason commented Apr 14, 2021

Fix to the UUID function to only convert to Middle Endian on SMBIOS Versions greater than or equal to 2.6.

I've also published patched copies of Sidero and Talos using this branch:
https://github.com/bnason/talos/tree/go-smbios-uuid-fix
https://github.com/bnason/sidero/tree/go-smbios-uuid-fix

I was able to successfully test this on 3 systems:

  1. Using a VirtualBox VM with SMBIOS Version 2.5
  2. Using a desktop pc with a SMBIOS Version 2.7
  3. Using a very old server with a SMBIOS Version 2.5

One interesting thing to note about system 2 is that before pxe booting, the system prints the UUID as 9402DE03-8004-0605-F806-D50700080009 while both iPXE and go-smbios report it as 03DE0294-0480-0506-F806-D50700080009.

More systems should probably be tested to ensure wide compatability.

smira
smira previously approved these changes Apr 14, 2021
@smira
Copy link
Member

smira commented Apr 14, 2021

@bnason would you mind re-pushing the change with the commit message conforming to conventional commits + DCO, e.g.:

fix: return UUID in middle endian only on SMBIOS >= 2.6

Some notes here

Signed-off-by: ...

@smira
Copy link
Member

smira commented Apr 14, 2021

/approve

Changes the conversion logic used to return the UUID. Now only
converts to middle endian on smbios >= 2.6.

Signed-off-by: Brandon Nason <brandon.nason@gmail.com>
@rsmitty
Copy link
Member

rsmitty commented Apr 22, 2021

/lgtm

@talos-bot talos-bot merged commit d3a32be into siderolabs:master Apr 22, 2021
smira added a commit to smira/sidero that referenced this pull request Apr 22, 2021
See siderolabs/go-smbios#8

This pulls also other changes from `go-smbios` which add new memory
information, but they're not used yet.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
smira added a commit to smira/sidero that referenced this pull request Apr 22, 2021
See siderolabs/go-smbios#8

This pulls also other changes from `go-smbios` which add new memory
information, but they're not used yet.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
talos-bot pushed a commit to siderolabs/sidero that referenced this pull request Apr 22, 2021
See siderolabs/go-smbios#8

This pulls also other changes from `go-smbios` which add new memory
information, but they're not used yet.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants