From 7f8205e1b8cd08b57c56365fe11ab5e40ab11956 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Sun, 8 Mar 2009 09:18:12 -0500 Subject: [PATCH] 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. --- dracut | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut b/dracut index ce833804..eb3ff24a 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" }