Merge "libmodprobe: remove dummy parameters for kernel" into main

This commit is contained in:
Treehugger Robot 2024-04-24 22:00:52 +00:00 committed by Gerrit Code Review
commit ef3679a78a

View file

@ -484,7 +484,11 @@ bool Modprobe::LoadModulesParallel(int num_threads) {
return false;
}
if (module_options_[cnd_last].find("load_sequential=1") != std::string::npos) {
std::string str = "load_sequential=1";
auto it = module_options_[cnd_last].find(str);
if (it != std::string::npos) {
module_options_[cnd_last].erase(it, it + str.size());
if (!LoadWithAliases(cnd_last, true)) {
return false;
}