Make dracutmodules default to "auto"
authorVictor Lowther <victor.lowther@gmail.com>
Sun, 8 Mar 2009 14:18:12 +0000 (09:18 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Sun, 8 Mar 2009 16:39:43 +0000 (11:39 -0500)
We have OS-specific modules, and it is vital that we skip then on
OSes that they do not apply to.

dracut

diff --git a/dracut b/dracut
index ce83380..eb3ff24 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -35,7 +35,7 @@ done
 dracutfunctions=$dsrc/dracut-functions
 export dracutfunctions
 
-[[ $dracutmodules ]] || dracutmodules="all"
+[[ $dracutmodules ]] || dracutmodules="auto"
 [[ $dracutmodules = "auto" ]] && {
     dracutmodules="all"
     skipmissing="yes"
@@ -78,7 +78,7 @@ can_source_module() {
     # $1 = location of module
     mod=${1##*/}; mod=${mod#[0-9][0-9]};
     if [[ $dracutmodules != all ]]; then
-       strstr "$dracutmodules " "$mod " || return 1;;
+       strstr "$dracutmodules " "$mod " || return 1
     fi
     skip_missing "$1"
 }