]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
kernel-modules/module-setup.sh: fix instmods $filesystems
authorHarald Hoyer <harald@redhat.com>
Thu, 10 Mar 2011 15:45:07 +0000 (16:45 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 10 Mar 2011 16:22:55 +0000 (17:22 +0100)
especially in host_only mode, $filesystems was not honored

modules.d/90kernel-modules/module-setup.sh

index 3a2560eb2d0cf97c7c5b69b7264c88c0507abb92..5f0e4a75c5f3fa073281a8340898c069fba6f899 100755 (executable)
@@ -26,17 +26,16 @@ installkernel() {
                 # hardcoded list of exceptions
                 # to save a lot of space
                 rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2
-            else
-                instmods $filesystems
             fi
         else
             hostonly='' instmods $(get_fs_type "/dev/block/$(find_root_block_device)")
         fi
     else
-        hostonly='' instmods $drivers $filesystems
+        hostonly='' instmods $drivers
     fi
 
     [[ $add_drivers ]] && hostonly='' instmods $add_drivers
+    [[ $filesystems ]] && hostonly='' instmods $filesystems
 
     # force install of scsi_wait_scan
     hostonly='' instmods scsi_wait_scan