From 970e646b005d130ad7ad13e835388a53e195e49a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 2 Jul 2009 11:57:23 +0200 Subject: [PATCH] fixed --add option handling --- dracut-functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dracut-functions b/dracut-functions index fbecfcd..8fbfa97 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 } -- 2.7.4