]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
kernel-modules: only remove ocfs2, if all filesystems are installed
authorHarald Hoyer <harald@redhat.com>
Thu, 15 Apr 2010 10:47:52 +0000 (12:47 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 15 Apr 2010 10:47:52 +0000 (12:47 +0200)
modules.d/90kernel-modules/installkernel

index 4848f2af44f4bcfd84b070cdcdd7c36fedf7dbb4..90b535efb479641bbb764063d0e0016713e19acd 100755 (executable)
@@ -17,14 +17,15 @@ if [[ -z $drivers ]]; then
     if ! [[ $hostonly ]]; then
        if [[ -z $filesystems ]]; then
            instmods '=fs'
+           # 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
-    # hardcoded list of exceptions
-    rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2
 else
   hostonly='' instmods $drivers $filesystems
 fi