[Mageia-dev] dkms-nvidia-current removes module when installing
Anssi Hannula
anssi at mageia.org
Mon Apr 9 23:41:58 CEST 2012
09.04.2012 22:14, simple w8 kirjoitti:
> Hi,
Hi,
> 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:
The purpose is to unload the previous version of the module in case we
are not already in X.
> 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.
>
> nvidia-current.ko.xz:
> - Installation
> - Installing to /lib/modules/3.3.1-desktop-2.mga2/dkms/drivers/char/drm/
>
> depmod..........
> ERROR: could not insert 'nvidia_current': No such device
That's an interesting issue, can you provide the output of 'dmesg' after
that?
> Is possible that someone can remove that "rmmod" command from the %post section?
I don't understand (yet) how the issue you are seeing is related to the
'rmmod' command.
--
Anssi Hannula
More information about the Mageia-dev
mailing list