diff options
author | Peter Jones <pjones@redhat.com> | 2009-11-23 10:15:56 -0500 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2009-11-25 13:40:22 -0500 |
commit | c761b26aef576bcf45cedeb304e633e741e1e5a2 (patch) | |
tree | 4abf1f60aca14148070fa527c9b3c797ad40a0b4 | |
parent | 4ee9ce444b1b0abe2f7f24c34d00ab6b9cf48580 (diff) |
Handle modules with hyphens in their names properly.
If a module has a hyphen in its name, it will show up as an underscore
in /proc/modules. Because of this, when we're testing /proc/modules,
we have to munge our module filename expression to match.
-rwxr-xr-x | dracut-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-functions b/dracut-functions index 331b723..df239a5 100755 --- a/dracut-functions +++ b/dracut-functions @@ -488,7 +488,7 @@ instmods() { [[ -f $initdir/$1 ]] && { shift; continue; } # If we are building a host-specific initramfs and this # module is not already loaded, move on to the next one. - [[ $hostonly ]] && ! grep -q "$mod" /proc/modules && { + [[ $hostonly ]] && ! grep -q "${mod//-/_}" /proc/modules && { shift; continue; } # ok, load the module, all its dependencies, and any firmware |