mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Automatically load required kernel modules
This commit is contained in:
parent
9f51d1d5bb
commit
93f5ddd4f4
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ VfioContainer::VfioContainer()
|
|||
};
|
||||
|
||||
for(const char* module : requiredKernelModules) {
|
||||
if(kernel_module_loaded(module) != 0) {
|
||||
logger->error("Kernel module '{}' required but not loaded. "
|
||||
if(kernel_module_load(module) != 0) {
|
||||
logger->error("Kernel module '{}' required but could not be loaded. "
|
||||
"Please load manually!", module);
|
||||
throw std::exception();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue