[PR #2263] fix 2260: fallback serial to Board #3334

Open
opened 2025-11-20 08:05:42 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/2263

State: closed
Merged: Yes


Describe your changes

My device does not have any serial, this patch fallbacks to board serial to avoid marshall error during message encryption
note: this patch is arguable, I should also check that Board has a valid serial

my case is this one:

# cat /sys/class/dmi/id/chassis_serial
���������������������������������
# cat /sys/class/dmi/id/product_serial
���������������������������������
# cat /sys/class/dmi/id/board_serial
GETY419003GB

# cat /sys/class/dmi/id/product_name
���������������������������������
# cat /sys/class/dmi/id/board_name
DE3815TYKH

fix https://github.com/netbirdio/netbird/issues/2260

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/2263 **State:** closed **Merged:** Yes --- ## Describe your changes My device does not have any serial, this patch fallbacks to board serial to avoid marshall error during message encryption note: this patch is arguable, I should also check that Board has a valid serial my case is this one: ```bash # cat /sys/class/dmi/id/chassis_serial ��������������������������������� # cat /sys/class/dmi/id/product_serial ��������������������������������� # cat /sys/class/dmi/id/board_serial GETY419003GB # cat /sys/class/dmi/id/product_name ��������������������������������� # cat /sys/class/dmi/id/board_name DE3815TYKH ``` ## Issue ticket number and link fix https://github.com/netbirdio/netbird/issues/2260 ### Checklist - [X] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2025-11-20 08:05:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#3334