From: Harald Hoyer Date: Fri, 27 Nov 2009 13:29:32 +0000 (+0100) Subject: changed hostonly documentation and handling X-Git-Tag: 003~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba67b9239bd72f9311d695dd694aab944b0976d3;p=thirdparty%2Fdracut.git changed hostonly documentation and handling --- diff --git a/dracut b/dracut index 91ca6849c..b43817371 100755 --- a/dracut +++ b/dracut @@ -145,6 +145,7 @@ fi fw_dir=${fw_dir//:/ } [[ $hostonly = yes ]] && hostonly="-h" +[[ $hostonly != "-h" ]] && unset hostonly if [[ -f $dracutbasedir/dracut-functions ]]; then . $dracutbasedir/dracut-functions diff --git a/dracut-functions b/dracut-functions index 134ad3cea..ca35eaf0d 100755 --- a/dracut-functions +++ b/dracut-functions @@ -449,7 +449,7 @@ for_each_kmod_dep() { # If it is not, we will look at all kernel modules # This function returns the full filenames of modules that match $1 filter_kernel_modules () ( - if [[ $hostonly = '' ]]; then + if ! [[ $hostonly ]]; then filtercmd='find "$srcmods/kernel/drivers" -name "*.ko"' else filtercmd='cut -d " " -f 1