712866
From b7c7b16d4ec61e3924c1006bf13d641904825cda Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Fri, 22 Jul 2016 08:39:38 +0200
712866
Subject: [PATCH] dracut.sh: extend host_fs_types with $filesystems
712866
712866
Additional filesystems specified on the kernel command line or in the
712866
configuration files, should trigger the inclusion of the corresponding
712866
dracut modules, therefore host_fs_types is extended with these
712866
filesystems.
712866
---
712866
 dracut.sh | 6 ++++++
712866
 1 file changed, 6 insertions(+)
712866
712866
diff --git a/dracut.sh b/dracut.sh
5c6c2a
index fefdefd5..0a699737 100755
712866
--- a/dracut.sh
712866
+++ b/dracut.sh
712866
@@ -1174,6 +1174,12 @@ for dev in "${!host_fs_types[@]}"; do
712866
     fi
712866
 done
712866
 
712866
+# also put the additional filesystems in host_fs_types
712866
+# so that the according modules are installed.
712866
+for fs in $filesystems; do
712866
+    host_fs_types[$fs]="$fs"
712866
+done
712866
+
712866
 [[ -d $udevdir ]] \
712866
     || udevdir="$(pkg-config udev --variable=udevdir 2>/dev/null)"
712866
 if ! [[ -d "$udevdir" ]]; then