Page 1 of 1

How to add a r8169 driver to startup for Centos 7

Posted: 2020/12/12 18:53:14
by devoleksiy
D-Link System Inc DGE-528T Gigabit Ethernet Adapter (rev 10), r8169
I installed a new network card and it does not work, more precisely, it only works after:

Code: Select all

modprobe r8169
And stops working after system reboot.
I tried but the result is the same.

Code: Select all

echo r8169 >> /etc/modules-load.d/r8169.conf

Re: How to add a r8169 driver to startup for Centos 7

Posted: 2020/12/12 23:02:34
by TrevorH
Did you rebuild your initramfs file with dracut -f ? You probably don't need the /etc/modules.load.d file so I'd remove that before you run dracut.

Re: How to add a r8169 driver to startup for Centos 7

Posted: 2020/12/13 08:40:56
by devoleksiy
The problem was that there was still garbage from old drivers, along the following paths:
The r8169 driver was not installed through what was garbage from the old r8168 driver
/etc/depmod.d/kmod-r8168.conf
/lib/modules/*/extra/r8168/r8168.ko
/usr/share/doc/kmod-r8168*
/usr/share/doc/kmod-r8168*

I removed them manually, now it works.
I just don't understand who put them)