dynamic-hostname: fix Darter Pro uniqueness issue#1579
dynamic-hostname: fix Darter Pro uniqueness issue#1579brianmcgillion merged 1 commit intotiiuae:mainfrom
Conversation
abd5829 to
226f64c
Compare
226f64c to
3675901
Compare
3675901 to
fff15c0
Compare
fff15c0 to
dc00c32
Compare
dc00c32 to
095d37f
Compare
095d37f to
1c7cfbf
Compare
1c7cfbf to
f67af7b
Compare
|
There is an issue with the laptops, the Device ID does not stay the same. Each time a laptop is booted with a new image built from this PR it gets a new Device ID. This is happening with Lenovo X1, Dell 7330 and Darter Pro. For the Orins the ID is persistent. Please also update the |
Darter Pro laptops have identical system board serials, causing hostname collisions. This change refactors the hostname generation to use a combination of multiple hardware identifiers instead of a single ID: - Collects all available DMI serials and UUIDs - Collects all disk UUIDs - Collects MAC addresses from physical network interfaces only (excluding loopback and USB gadget mode) - Falls back to machine-id only if no hardware IDs were collected The combined ID string increases uniqueness and prevents collisions on systems with duplicate serial numbers. - Removed VM machine-id generation. VMs will now generate their own machine-id on first boot Signed-off-by: vadik likholetov <vadikas@gmail.com>
f67af7b to
c7ec4c1
Compare
Updated testing instructions, found and fixed the issue. |
|
Tested with 2 Lenovo X1 laptops and 2 Darter Pro laptops
Note: Dell 7230 build is failing. Adding a "bug" tag for that. |
Is build falure related to PR? |
No, it is part of the issue I sent a message about in Slack an hour ago |
|
merging as the build failure was unrelated. and hopefully fixed, by previous PR. |
Darter Pro laptops have identical system board serials, causing hostname collisions. This change refactors the hostname generation to use a combination of multiple hardware identifiers instead of a single ID:
The combined ID string increases uniqueness and prevents collisions on systems with duplicate serial numbers.
Description of Changes
Type of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify:
Hostname should be