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

Enhancement: Load drivers via systemd-modules-load service? #9

Open
LRitzdorf opened this issue Feb 21, 2024 · 2 comments · May be fixed by #11
Open

Enhancement: Load drivers via systemd-modules-load service? #9

LRitzdorf opened this issue Feb 21, 2024 · 2 comments · May be fixed by #11
Labels
enhancement New feature or request

Comments

@LRitzdorf
Copy link
Contributor

Currently, this repo provides a custom systemd service and script (in examples/passthrough/linux/systemd/) to load our custom AD1939 and TPA613A2 drivers. This is perfectly functional, but systemd actually provides a built-in way to achieve this: systemd-modules-load.service. This service is active by default, and reads files placed inside of /etc/modules-load.d/, loading any kernel modules named therein. See also: modules-load.d(5).

I've talked briefly about this with @tvannoy, and it's not clear how significantly this change would affect the textbook content. If the impact turns out to be substantial, waiting to implement this until the next textbook revision may be warranted.

@rksnider
Copy link
Contributor

rksnider commented Feb 21, 2024 via email

@tvannoy
Copy link
Collaborator

tvannoy commented Feb 21, 2024

My only comment here, in terms of pedagogy, is that we need to ensure that students still learn to create a systemd service, perhaps to launch their program on boot. If we make sure that they write their own systemd service elsewhere, then I'm fine with using systemd-modules-load.

@tvannoy tvannoy added the enhancement New feature or request label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants