nvidia.ko: No such file or directory during dracut but the file exists. ==> the file was a wrong link

General support questions
Post Reply
chankim
Posts: 38
Joined: 2015/07/15 12:05:39

nvidia.ko: No such file or directory during dracut but the file exists. ==> the file was a wrong link

Post by chankim » 2018/05/08 01:37:30

To make initramfs image file for a kernel under /boot, I used dracut command
sudo dracut initrd-2.6.32-696.23.1.el6.x86_64.img 2.6.32-696.23.1.el6.x86_64
but during the image generation, I see this warning message.
egrep: /lib/modules/2.6.32-696.23.1.el6.x86_64//weak-updates/nvidia.ko: No such file or directory
for some reason, the path it is looking for is wrong. there is a double forward slash.
I checked /lib/modules/2.6.32-696.23.1.el6.x86_64/weak-updates/nvidia.ko file exists.
How should I make dracut look for correct path?
Last edited by chankim on 2018/05/08 02:57:41, edited 2 times in total.

chankim
Posts: 38
Joined: 2015/07/15 12:05:39

Re: nvidia.ko: No such file or directory during dracut but the file exists.

Post by chankim » 2018/05/08 02:10:35

I later found /lib/modules/2.6.32-696.23.1.el6.x86_64//weak-updates/nvidia.ko is a symbolic link pointing to old kernel directory,
so I changed the link by
sudo ln -s /lib/modules/2.6.32-696.23.1.el6.x86_64/extra/nvidia/nvidia.ko nvidia.ko
and ran dracut again, and this time there was no complaint.

User avatar
TrevorH
Forum Moderator
Posts: 23653
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: nvidia.ko: No such file or directory during dracut but the file exists. ==> the file was a wrong link

Post by TrevorH » 2018/05/08 15:26:20

It doesn't matter anyway, it's just an informational message and can be ignored.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply