From: Harald Hoyer Date: Thu, 2 Jul 2009 09:57:23 +0000 (+0200) Subject: fixed --add option handling X-Git-Tag: 0.3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=970e646b005d130ad7ad13e835388a53e195e49a;p=thirdparty%2Fdracut.git fixed --add option handling --- diff --git a/dracut-functions b/dracut-functions index fbecfcd99..8fbfa9768 100755 --- a/dracut-functions +++ b/dracut-functions @@ -257,8 +257,9 @@ check_modules() { [[ $dracutmodules != all ]] && ! strstr "$dracutmodules" "$mod" && \ continue strstr "$omit_dracutmodules" "$mod" && continue - strstr "$add_dracutmodules" " $mod " \ - || should_source_module "$moddir" || continue + if ! strstr "$add_dracutmodules" " $mod "; then + should_source_module "$moddir" || continue + fi mods_to_load+=" $mod " done }