Skip to main content
Topic: /usr/bin/modules-load can't handle alias (Read 618 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

/usr/bin/modules-load can't handle alias

I am using using envycontrol to disable nvidia gpu.
It created file /etc/modprobe.d/blacklist-nvidia.conf
Code: [Select]
# Automatically generated by EnvyControl

blacklist nouveau
blacklist nvidia
blacklist nvidia_drm
blacklist nvidia_uvm
blacklist nvidia_modeset
alias nouveau off
alias nvidia off
alias nvidia_drm off
alias nvidia_uvm off
alias nvidia_modeset off
Dinit and Runit has script /usr/bin/modules-load which can't handle alias for kernel modules. when modules-load is executed it give error
Code: [Select]
modprobe: ERROR: could not find module by name='off'
modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
Create problems which don't have solution

 

Re: /usr/bin/modules-load can't handle alias

Reply #1
Why do you need those aliases in the first place?


Re: /usr/bin/modules-load can't handle alias

Reply #3
Well yeah modules-load is just a simple bash script. Do you happen to know if systemd-modules-load handles aliases?

Re: /usr/bin/modules-load can't handle alias

Reply #4
Well yeah modules-load is just a simple bash script. Do you happen to know if systemd-modules-load handles aliases?
I have not checked on systemd
Create problems which don't have solution

Re: /usr/bin/modules-load can't handle alias

Reply #5
Are any of the aliased-to-off modules mentioned in files from your /usr/lib/modules-load.d or /etc/modules-load.d folders?

I copypasted your /etc/modprobe.d/blacklist-nvidia.conf to my AMD-based system but the error message doesn't show up, however running:

Code: [Select]
$ modprobe nvidia
modprobe: ERROR: could not find module by name='off'
modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)

Well yeah modules-load is just a simple bash script. Do you happen to know if systemd-modules-load handles aliases?

systemd's modules-load.d manpage doesn't mention them.

Aliases seem to be handled by modprobe, which is provided by util-linux kmod on both systemd and non-systemd GNU/Linux™ systems.