Skip to content

network: persist random eth0 MAC across boots#381

Open
paxx12 wants to merge 1 commit intodevelopfrom
feature/persist-eth0-mac
Open

network: persist random eth0 MAC across boots#381
paxx12 wants to merge 1 commit intodevelopfrom
feature/persist-eth0-mac

Conversation

@paxx12
Copy link
Copy Markdown
Owner

@paxx12 paxx12 commented Apr 4, 2026

Persist the locally administered MAC address assigned to eth0 under /oem/network and restore it before DHCP runs on later boots.

The eth0 ifupdown stanza now restores the saved address in pre-up and saves the current random address in post-up so the device keeps a stable network identity.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2026

✅ Build Artifacts

Version: 1.2.0-paxx12-test-pr-381
Build: f36b0be (merge of 546d577 into develop)
Duration: 3m 42s

Artifact Size
extended-devel-build 225.48 MB
extended-build 225.08 MB

View workflow run

@paxx12 paxx12 force-pushed the feature/persist-eth0-mac branch from 546d577 to 39d82d9 Compare April 5, 2026 16:54
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

✅ Build Artifacts

Version: 1.2.0-paxx12-test-pr-381
Build: e8b343a (merge of 39d82d9 into develop)
Duration: 3m 59s

Artifact Size
extended-devel-build 225.48 MB
extended-build 225.08 MB

View workflow run

@paxx12 paxx12 force-pushed the feature/persist-eth0-mac branch from 39d82d9 to b03f8ca Compare April 9, 2026 10:17
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

✅ Build Artifacts

Version: 1.2.0-paxx12-test-pr-381
Build: a3c41c7 (merge of b03f8ca into develop)
Duration: 6m 45s

Artifact Size
extended-devel-build 225.48 MB
extended-build 225.08 MB

View workflow run

Add /usr/local/sbin/derived-mac and hook it from eth0 pre-up.

The script derives a deterministic locally administered MAC from /oem/printer_data/.lava.sn or, if that is missing, from the cpuinfo Serial value plus the interface name. It only changes the address when the current MAC is a random locally administered unicast address, and leaves non-random MACs unchanged.
@paxx12 paxx12 force-pushed the feature/persist-eth0-mac branch from b03f8ca to 8de9e2b Compare April 9, 2026 14:48
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

✅ Build Artifacts

Version: 1.2.0-paxx12-test-pr-381
Build: 7671dc2 (merge of 8de9e2b into develop)
Duration: 4m 0s

Artifact Size
extended-devel-build 225.48 MB
extended-build 225.08 MB

View workflow run

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