]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: extend host_fs_types with $filesystems
authorHarald Hoyer <harald@redhat.com>
Fri, 22 Jul 2016 06:39:38 +0000 (08:39 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 22 Jul 2016 06:39:38 +0000 (08:39 +0200)
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.

dracut.sh

index fefdefd531c943f1f8b62231c2e39813e5689415..0a699737850fce9cd9908ee7af90b7318dcd42f3 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -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