[Mageia-dev] dkms-nvidia-current removes module when installing

simple w8 simplew8 at gmail.com
Mon Apr 9 21:14:42 CEST 2012


I saw that in nvidia-current.spec the nvidia module is being removed
from kernel after running dkms install:

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v
%{version}-%{release} &&
/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v
%{version}-%{release} &&
/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v
%{version}-%{release} --force

# rmmod any old driver if present and not in use (e.g. by X)
rmmod nvidia > /dev/null 2>&1 || true

this makes that after running dkms install the module is removed, this
loosing the purpose of isntalling this dkms package, see the output:

Building module:
cleaning build area....
make KERNELRELEASE=3.3.1-desktop-2.mga2
SYSSRC=/lib/modules/3.3.1-desktop-2.mga2/build module........
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.

 - Installation
   - Installing to /lib/modules/3.3.1-desktop-2.mga2/dkms/drivers/char/drm/

ERROR: could not insert 'nvidia_current': No such device

Is possible that someone can remove that "rmmod" command from the %post section?

More information about the Mageia-dev mailing list