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?
nvidia.ko: No such file or directory during dracut but the file exists. ==> the file was a wrong link
nvidia.ko: No such file or directory during dracut but the file exists. ==> the file was a wrong link
Last edited by chankim on 2018/05/08 02:57:41, edited 2 times in total.
Re: nvidia.ko: No such file or directory during dracut but the file exists.
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.
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.
Re: nvidia.ko: No such file or directory during dracut but the file exists. ==> the file was a wrong link
It doesn't matter anyway, it's just an informational message and can be ignored.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke