diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c index 6025bd67..997d62d3 100644 --- a/src/install/dracut-install.c +++ b/src/install/dracut-install.c @@ -1522,7 +1522,7 @@ static int install_dependent_modules(struct kmod_list *modlist) if (check_hashmap(items_failed, path)) return -1; - if (check_hashmap(items, path)) { + if (check_hashmap(items, &path[kerneldirlen])) { continue; }