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

meta-lxatac-bsp: lxatac-factory-data: order service before udev #115

Merged
merged 3 commits into from
Mar 1, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented Feb 23, 2024

This is an altternative to #107. Since both approaches are valid and have their benefits and drawbacks I made this a competing PR.

Order the factory data collecting service before the udev systemd service to make sure that the .link file it creates exists before udev starts looking for rules.

This should fix an issue we have that results in the tac-bridge interface having the wrong MAC address on some boots.

In contrast to #107 it does so without triggering udev to reload its rules.

@jluebbe jluebbe assigned hnez and unassigned jluebbe and michaelolbrich Feb 26, 2024
hnez added 3 commits March 1, 2024 07:21
We want to pull the exectution of the factory-data script earlier in the boot
process, so it runs before udev starts.
Relying on a DBus service to get and set the hostname goes against that goal.
Just asking the kernel and writing to /etc/hostname is more or less equivalent
to what we have done before, so just do that.

Signed-off-by: Leonard Göhrs <[email protected]>
This makes sure that our tac-bridge.link file is ready before udev
reads it. We have previously run into race conditions where the
file was not present at the correct point in time, resulting in the
bridge interface coming up with the wrong MAC address.

Signed-off-by: Leonard Göhrs <[email protected]>
@hnez hnez force-pushed the tac-bridge-link-order branch from 246e9a6 to 07a08bd Compare March 1, 2024 06:30
@hnez hnez assigned michaelolbrich and unassigned hnez Mar 1, 2024
Copy link
Collaborator

@michaelolbrich michaelolbrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The correct spelling is "D-Bus" but in the commit message it does not really matter.
The rest looks good

@hnez hnez merged commit 1c380b7 into linux-automation:nanbield Mar 1, 2024
3 checks passed
@hnez hnez deleted the tac-bridge-link-order branch March 1, 2024 08:33
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.

3 participants