Blame SOURCES/0446-dracut.sh-extend-host_fs_types-with-filesystems.patch

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