GNU bug report logs -
#40274
[PATCH] gnu: Add kernel-module-loader-service.
Previous Next
Reported by: Brice Waegeneire <brice <at> waegenei.re>
Date: Sat, 28 Mar 2020 14:00:02 UTC
Severity: normal
Tags: patch
Done: Danny Milosavljevic <dannym <at> scratchpost.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello Brice,
I think what you discussed with Danny, separating module loading from
configuration is very wise.
> +The kernel module loader service allows one to load, at boot, loadable
> +kernel modules---in opposition to built-in kernel modules which should
> +be added to the @code{kernel-arguments} field instead. This is
Using kernel-arguments you can configure built-in modules but you cannot
force them to show-up, at least for most device drivers. For those
device drivers, loading of built-in modules is based on hardware probing
at boot-time.
So I would just stick with:
"The kernel module loader service allows one to load, at boot time,
specific kernel modules."
> +(define ddcci-config
> + (plain-file "ddcci.conf"
> + "options ddcci dyndbg delay=120"))
Having the modprobe-service-type you proposed earlier, would be super
nice to do that :)
> +
> +(operating-system
> + ...
> + (services (cons* (service kernel-module-loader-service-type
> + '("ddcci" "ddcci_backlight"))
> + (simple-service 'ddcci-config etc-service-type
> + (list `("modprobe.d/ddcci.conf"
> + ,ddcci-config)))
Great!
This seems really nice to me.
Mathieu
This bug report was last modified 5 years and 45 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.