[5/6] usertools/setup: fix loading vfio module
Checks
Commit Message
script is checking the existing of the kernel module file, but in some
distros kernel modules are stored compressed, like as 'vfio-pci.ko.xz'.
Add wildcard to cover both compressed and not compressed cases.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
usertools/dpdk-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -62,7 +62,7 @@ load_vfio_module()
{
remove_vfio_module
- VFIO_PATH="kernel/drivers/vfio/pci/vfio-pci.ko"
+ VFIO_PATH="kernel/drivers/vfio/pci/vfio-pci.ko*"
echo "Loading VFIO module"
/sbin/lsmod | grep -s vfio_pci > /dev/null