From: Victor Lowther Date: Sun, 8 Mar 2009 14:18:12 +0000 (-0500) Subject: Make dracutmodules default to "auto" X-Git-Tag: 0.1~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f8205e1b8cd08b57c56365fe11ab5e40ab11956;p=thirdparty%2Fdracut.git Make dracutmodules default to "auto" We have OS-specific modules, and it is vital that we skip then on OSes that they do not apply to. --- diff --git a/dracut b/dracut index ce8338042..eb3ff24a1 100755 --- 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" }