From ba67b9239bd72f9311d695dd694aab944b0976d3 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 27 Nov 2009 14:29:32 +0100 Subject: [PATCH] changed hostonly documentation and handling --- dracut | 1 + dracut-functions | 2 +- dracut.conf | 2 +- dracut.conf.5 | 2 +- modules.d/90kernel-modules/installkernel | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) 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