kfreestyle2d icon indicating copy to clipboard operation
kfreestyle2d copied to clipboard

Ensure module insertion on boot in fedora and friends

Open whereswaldon opened this issue 6 years ago • 4 comments

Thanks to #7, the uinput group is created correctly at install time. So long as the uinput module is loaded when you boot your system, everything should be peachy. However, my F29 instance doesn't seem to load the module despite its presence in /etc/modules. I'm guessing that Fedora manages this a different way (dracut?), but it requires more research.

whereswaldon avatar Dec 14 '18 15:12 whereswaldon

From https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/kernel-module-driver-configuration/Working_with_Kernel_Modules/#sec-Persistent_Module_Loading:

You can specify additional modules to be loaded by the systemd-modules-load.service daemon by creating a program.conf file in the /etc/modules-load.d/ directory, where program is any descriptive name of your choice. The files in /etc/modules-load.d/ are text files that list the modules to be loaded, one per line.

psafont avatar Apr 09 '19 09:04 psafont

@psafont that worked for me! Thanks!

/etc/modules-load.d$ cat uinput.conf 
uinput

It seems fedora 29 ignores /etc/modules.

samiconductor avatar Apr 10 '19 03:04 samiconductor

@psafont Thanks for the citation! I guess I just need to update the makefile to do both the /etc/modules and /etc/modules-load.d/uinput.conf changes (maybe to to choose based on distro, but that seems more fragile).

whereswaldon avatar Apr 11 '19 12:04 whereswaldon

Maybe test if systemd is available else fallback to /etc/modules?

samiconductor avatar Apr 11 '19 14:04 samiconductor