dracut.sh: extend host_fs_types with $filesystems

Additional filesystems specified on the kernel command line or in the
configuration files, should trigger the inclusion of the corresponding
dracut modules, therefore host_fs_types is extended with these
filesystems.
Harald Hoyer 2016-07-22 08:39:38 +02:00
parent b077d18963
commit b7c7b16d4e
1 changed files with 6 additions and 0 deletions

View File

@ -1174,6 +1174,12 @@ for dev in "${!host_fs_types[@]}"; do
fi
done

# also put the additional filesystems in host_fs_types
# so that the according modules are installed.
for fs in $filesystems; do
host_fs_types[$fs]="$fs"
done

[[ -d $udevdir ]] \
|| udevdir="$(pkg-config udev --variable=udevdir 2>/dev/null)"
if ! [[ -d "$udevdir" ]]; then