diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e052e0bfe..e762713d2 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -68,6 +68,7 @@ jobs: make - name: execute test run: | + sudo modprobe uio uio_pdrv_genirq uio_dmem_genirq cd build make test - name: test logs diff --git a/lib/system/linux/device.c b/lib/system/linux/device.c index 79ac82446..549116c39 100644 --- a/lib/system/linux/device.c +++ b/lib/system/linux/device.c @@ -1113,21 +1113,6 @@ static int metal_linux_probe_driver(struct linux_bus *lbus, ldrv->sdrv = sysfs_open_driver(lbus->bus_name, ldrv->drv_name); } - /* Try sudo probing the module and then open the driver. */ - if (!ldrv->sdrv) { - ret = snprintf(command, sizeof(command), - "sudo modprobe %s > /dev/null 2>&1", ldrv->mod_name); - if (ret >= (int)sizeof(command)) - return -EOVERFLOW; - ret = system(command); - if (ret < 0) { - metal_log(METAL_LOG_WARNING, - "%s: executing system command '%s' failed.\n", - __func__, command); - } - ldrv->sdrv = sysfs_open_driver(lbus->bus_name, ldrv->drv_name); - } - /* If all else fails... */ return ldrv->sdrv ? 0 : -ENODEV; }