Skip to content

udev: run both as onboot and as service; drop hardcoded modprobe #270

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rpardini
Copy link
Member

@rpardini rpardini commented May 6, 2025

udev: run both as onboot and as service; drop hardcoded modprobe

  • udev onboot is required so all devices are setup before the rest runs
    • hackish 'one-shot.sh' starts udev, waits until its done, then kills it
  • udev service is required so changes to devices (eg partition changes)
    take actual effect at runtime
  • systemd's udev should correctly modprobe all devices, thus remove the
    hardcoded modprobe call for cdc_ncm

Signed-off-by: Ricardo Pardini [email protected]

- udev onboot is required so all devices are setup before the rest runs
  - hackish 'one-shot.sh' starts udev, waits until its done, then kills it
- udev service is required so changes to devices (eg partition changes)
  take actual effect at runtime
- systemd's udev should correctly modprobe all devices, thus remove the
  hardcoded modprobe call for cdc_ncm

Signed-off-by: Ricardo Pardini <[email protected]>
@rpardini
Copy link
Member Author

rpardini commented May 6, 2025

There is a probably much better way of doing the onboot -- here for reference and someone smarter than me to fix further.

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