-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-10.1
-
None
-
No
-
None
-
rhel-kernel-maint
-
0
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
"modprobe --remove --remove-holders ..." to unload modules with dependencies on each other is failing with an error:
[root@prereserve-1mt-rhel-10 ~]# modprobe bnx2i [root@prereserve-1mt-rhel-10 ~]# lsmod | grep -e bnx2i -e cnic bnx2i 94208 0 libiscsi 94208 1 bnx2i cnic 90112 1 bnx2i scsi_transport_iscsi 196608 2 bnx2i,libiscsi uio 32768 1 cnic [root@prereserve-1mt-rhel-10 ~]# modprobe --remove --remove-holders cnic bnx2i modprobe: ERROR: libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'cnic': No such file or directory [root@prereserve-1mt-rhel-10 ~]# echo $? 1 [root@prereserve-1mt-rhel-10 ~]# lsmod | grep -e bnx2i -e cnic [root@prereserve-1mt-rhel-10 ~]#
From jstancek@redhat.com, bug RHEL-111601:
> modprobe: ERROR: libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'cnic': No such file or directory
This looks like something that could be improved, it's removing same module two times, second one fails with ENOENT.
Please provide the package NVR for which the bug is seen:
kmod-31-12.el10
Expected results
Modules removed without errors.
Actual results
[root@prereserve-1mt-rhel-10 ~]# modprobe --remove --remove-holders cnic bnx2i modprobe: ERROR: libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'cnic': No such file or directory [root@prereserve-1mt-rhel-10 ~]# echo $? 1 [root@prereserve-1mt-rhel-10 ~]#