Browse Source

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.
master
Victor Lowther 16 years ago
parent
commit
7f8205e1b8
  1. 4
      dracut

4
dracut

@ -35,7 +35,7 @@ done @@ -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() { @@ -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"
}

Loading…
Cancel
Save