fw_dir=${fw_dir//:/ }
[[ $hostonly = yes ]] && hostonly="-h"
+[[ $hostonly != "-h" ]] && unset hostonly
if [[ -f $dracutbasedir/dracut-functions ]]; then
. $dracutbasedir/dracut-functions
# 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 </proc/modules|xargs modinfo -F filename -k $kernel'
#filesystems=""
# build initrd only to boot current hardware
-#hostonly="-h"
+#hostonly="yes"
#
# install local /etc/mdadm.conf
.BR do_strip="yes|no"
Strip binaries in the initramfs (default=yes)
.TP
-.BR hostonly="-h|"
+.BR hostonly="yes|no"
Host-Only mode: Install only what is needed for booting
the local host instead of a generic host.
.TP
instmods "=drivers/pcmcia" =ide "=drivers/usb/storage"
instmods $(filter_kernel_modules block_module_test)
# if not on hostonly mode, install all known filesystems if the required list is not set via the filesystems variable
- if [[ $hostonly = '' ]]; then
+ if ! [[ $hostonly ]]; then
if [[ -z $filesystems ]]; then
instmods '=fs'
else