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

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