Reporting an Issue on Codeberg is only for bugs? Where should feature
requests be sent?
I need to load a kernel module with some arguments, but this is not
supported by the service.
I used to be able to just load the required module:
(simple-service 'v4l2-loopback-kernel-module
kernel-module-loader-service-type
`("v4l2loopback"))
But I've been forced to use Chrome, and Chrome requires me to load the
module with exclusive_caps=1. So now I would like to have something like
the following:
(simple-service 'v4l2-loopback-kernel-module
kernel-module-loader-service-type
`(("v4l2loopback" "card_label=video-loopback"
"exclusive_caps=1")))
My initial thought was to change kernel-module-loader-service
to something like the following:
- (invoke/quiet modprobe "--" module))
+ (cond
+ ((string? module) (invoke/quiet modprobe "--"
module))
+ ((list? module) (apply invoke/quiet modprobe "--"
module))
+ (otherwise (format (current-error-port) "error:
~a~%"
+ "Module should either be a
module name or a list of module name and its arguments."))))
But I cannot find any tests for the service, and I'm not sure how to
write tests for this.
Any idea how I should proceed? Add it as an issue on Codeberg even
though it's not a bug?
Thanks, Simen.