diff options
author | Harald Hoyer <harald@redhat.com> | 2013-07-31 13:49:52 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-07-31 13:56:03 +0200 |
commit | 868f935e23bc7b9e3d6378c868cd91853587d2d0 (patch) | |
tree | a37d21261ba328d34ec424398c20b2e9d4ac0305 /dracut-functions.sh | |
parent | 4ba662ff90b5687f6f5a46f1db17bfb257114f44 (diff) | |
download | dracut-868f935e23bc7b9e3d6378c868cd91853587d2d0.tar.gz dracut-868f935e23bc7b9e3d6378c868cd91853587d2d0.tar.bz2 dracut-868f935e23bc7b9e3d6378c868cd91853587d2d0.zip |
kernel-modules/module-setup.sh: silently omit some filesystem drivers
Diffstat (limited to 'dracut-functions.sh')
-rwxr-xr-x | dracut-functions.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dracut-functions.sh b/dracut-functions.sh index c5bb1c4b..eb1278e0 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -1410,6 +1410,14 @@ install_kmod_with_fw() { fi fi + if [[ $silent_omit_drivers ]]; then + local _kmod=${1##*/} + _kmod=${_kmod%.ko} + _kmod=${_kmod/-/_} + [[ "$_kmod" =~ $silent_omit_drivers ]] && return 0 + [[ "${1##*/lib/modules/$kernel/}" =~ $silent_omit_drivers ]] && return 0 + fi + inst_simple "$1" "/lib/modules/$kernel/${1##*/lib/modules/$kernel/}" ret=$? [[ $DRACUT_KERNEL_LAZY_HASHDIR ]] && \ |