Skip to content

Comments

dynamic-hostname: persist identity#1699

Merged
brianmcgillion merged 1 commit intotiiuae:mainfrom
vadika:dynamic-hostname-fixxx
Jan 26, 2026
Merged

dynamic-hostname: persist identity#1699
brianmcgillion merged 1 commit intotiiuae:mainfrom
vadika:dynamic-hostname-fixxx

Conversation

@vadika
Copy link
Contributor

@vadika vadika commented Jan 22, 2026

  • Sort collected hardware identifiers before hashing to stabilize output
  • Reuse existing hostname/id on disk to keep identity stable across builds
  • Persist hardware key used for UUID/machine-id derivations

Description of Changes

Type of Change

  • New Feature
  • Bug Fix
  • Improvement / Refactor

Related Issues / Tickets

Checklist

  • Clear summary in PR description
  • Detailed and meaningful commit message(s)
  • Commits are logically organized and squashed if appropriate
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • Author has run make-checks and it passes
  • All automatic GitHub Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing Instructions

Applicable Targets

  • Orin AGX aarch64
  • Orin NX aarch64
  • Lenovo X1 x86_64
  • Dell Latitude x86_64
  • System 76 x86_64

Installation Method

  • Requires full re-installation
  • Can be updated with nixos-rebuild ... switch
  • Other:

Test Steps To Verify:

now hostnames should be unique and survive

  1. reboot
  2. reflash
  3. rebuild

  - Sort collected hardware identifiers before hashing to stabilize output
  - Reuse existing hostname/id on disk to keep identity stable across builds
  - Persist hardware key used for UUID/machine-id derivations

Signed-off-by: vadik likholetov <vadikas@gmail.com>
@milva-unikie
Copy link

Tested on Darter Pro

  • Device ID stays the same between reboots, rebuilds and reflashes.

Rest of the devices to be checked once this PR has been merged.

@milva-unikie milva-unikie added Tested on System76 and removed Needs Testing CI Team to pre-verify labels Jan 26, 2026
@brianmcgillion brianmcgillion merged commit 490bed9 into tiiuae:main Jan 26, 2026
32 checks passed
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.

3 participants